Skip to content

Commit

Permalink
put things in for loop, maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
eip618 authored Jun 27, 2024
1 parent ddbb4fb commit c34cf9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cogs/assistance.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ async def deletesoap(self, ctx: GuildContext, channels: commands.Greedy[discord.
for channel in channels:
if channel not in self.soaps_category.channels:
continue
msg = f":x: **:soap: channel deleted**: {ctx.author.mention} deleted :soap: channel {channel.name} ({channel.id})"
await self.bot.channels['mod-logs'].send(msg)
await ctx.send(f"Deleted :soap: {channel.name}.")
await channel.delete()
msg = f":x: **:soap: channel deleted**: {ctx.author.mention} deleted :soap: channel {channel.name} ({channel.id})"
await self.bot.channels['mod-logs'].send(msg)
await ctx.send(f"Deleted :soap: {channel.name}.")
await channel.delete()

@is_staff('OP')
@commands.guild_only()
Expand Down

0 comments on commit c34cf9e

Please sign in to comment.