From 823fb809dbfcc3aee90a2d082a00cde8d19bc6a7 Mon Sep 17 00:00:00 2001 From: eip <36315290+eip618@users.noreply.github.com> Date: Sat, 22 Jun 2024 20:06:10 +1000 Subject: [PATCH] change order of operations --- cogs/assistance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/assistance.py b/cogs/assistance.py index cc03891a..4df52b1c 100644 --- a/cogs/assistance.py +++ b/cogs/assistance.py @@ -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 - 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) await ctx.send(f"Deleted :soap: {channel.mention}.") + await channel.delete() @is_staff('OP') @commands.guild_only()