Skip to content

Commit

Permalink
eip and the whitespace saga (33)
Browse files Browse the repository at this point in the history
  • Loading branch information
eip618 committed Jun 22, 2024
1 parent 3460e01 commit 4bafe4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cogs/assistance.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ async def deletesoap(self, ctx: GuildContext, channels: commands.Greedy[discord.
"""Deletes a :soap: help channel. helper+ only."""
if not self.soaps_category:
return await ctx.send("The soaps category is not set.")
for channel in channels:
if channel not in self.soaps_category.channels:
continue
for channel in channels:
if channel not in self.soaps_category.channels:
continue
await channel.delete()
msg = f":x: **:soap: channel deleted**: {ctx.author.mention} deleted :soap: channel {channel.mention} | {channel.name} ({channel.id})"
await self.bot.channels['mod-logs'].send(msg)
Expand Down

0 comments on commit 4bafe4d

Please sign in to comment.