fix(forums): fixed an add_reaction that happened regardless of an isinstance check
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
6ee67f40e7
commit
ea083608f3
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ class Forums(commands.Cog):
|
|||
msg = await ctx.send("Are you sure you'd like to mark this thread as resolved?")
|
||||
passed_info.update({"msg": msg})
|
||||
await msg.edit(view=self.ResolvedButtons(timeout=180, passed_info=passed_info))
|
||||
await ctx.message.add_reaction("❌")
|
||||
else:
|
||||
await ctx.message.add_reaction("❌")
|
||||
|
||||
class ResolvedButtons(ui.View):
|
||||
def __init__(self, timeout, passed_info: dict):
|
||||
|
|
Loading…
Reference in a new issue