From c367edd088d1d6b4e13e9cc966adab2ea055a203 Mon Sep 17 00:00:00 2001 From: eip <36315290+eip618@users.noreply.github.com> Date: Sat, 22 Jun 2024 15:31:04 +1000 Subject: [PATCH] add rinse command thanks dad for helping with it --- cogs/assistance.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cogs/assistance.py b/cogs/assistance.py index 607cb2d6..88cd1727 100644 --- a/cogs/assistance.py +++ b/cogs/assistance.py @@ -170,6 +170,21 @@ async def createsoap(self, ctx: GuildContext, helpee: discord.Member): await self.bot.channels['mod-logs'].send(msg) await ctx.send(f"Created 🧼 {channel.mention}.") + @is_staff('Helper') + @commands.guild_only() + @commands.command(aliases=["rinse"]) + async def deletesoap(self, ctx: GuildContext, channels: commands.Greedy[discord.TextChannel): + """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 + 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}.") + @is_staff('OP') @commands.guild_only() @commands.command()