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
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
parent
563c94ff5c
commit
a561fda6d2
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue