From a561fda6d2a97e4e5816b3696fca6142cefbaba9 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Sep 2023 19:56:16 -0400 Subject: [PATCH] misc(forums): made using the command in the wrong channel autodelete the command after 5 seconds --- forums/forums.py | 1 + 1 file changed, 1 insertion(+) diff --git a/forums/forums.py b/forums/forums.py index bcbf8e9..02722bb 100644 --- a/forums/forums.py +++ b/forums/forums.py @@ -34,6 +34,7 @@ class Forums(commands.Cog): await msg.edit(view=self.ResolvedButtons(timeout=180, passed_info=passed_info)) else: await ctx.message.add_reaction("❌") + await ctx.message.delete(5) class ResolvedButtons(ui.View): def __init__(self, timeout, passed_info: dict):