From 67ed8aedc669b491e2167638059d48a2e19244de Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Sep 2023 18:58:25 -0400 Subject: [PATCH] feat(forums): implemented yes button for resolved command --- forums/forums.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/forums/forums.py b/forums/forums.py index 7734e87..2a23881 100644 --- a/forums/forums.py +++ b/forums/forums.py @@ -47,7 +47,10 @@ class Forums(commands.Cog): @ui.button(label="Yes", style=discord.ButtonStyle.success, emoji="✅") async def resolved_button_yes(self, button: ui.Button, interaction: discord.Interaction): channel = self.ctx.channel + await interaction.response.defer() await channel.edit(locked=True, archived=True, applied_tags=channel.applied_tags + await self.config.guild(channel.guild).forum_tag()) + await self.msg.delete() + await self.ctx.message.add_reaction("✅") @commands.group(name='forumconfig', invoke_without_command=True, aliases=['forumsset']) @commands.guild_only()