misc(forums): made using the command in the wrong channel autodelete the command after 5 seconds
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
Seaswimmer 2023-09-07 19:56:16 -04:00
parent 563c94ff5c
commit a561fda6d2
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -34,6 +34,7 @@ class Forums(commands.Cog):
await msg.edit(view=self.ResolvedButtons(timeout=180, passed_info=passed_info)) await msg.edit(view=self.ResolvedButtons(timeout=180, passed_info=passed_info))
else: else:
await ctx.message.add_reaction("") await ctx.message.add_reaction("")
await ctx.message.delete(5)
class ResolvedButtons(ui.View): class ResolvedButtons(ui.View):
def __init__(self, timeout, passed_info: dict): def __init__(self, timeout, passed_info: dict):