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,6 +31,7 @@ class Forums(commands.Cog):
|
||||||
msg = await ctx.send("Are you sure you'd like to mark this thread as resolved?")
|
msg = await ctx.send("Are you sure you'd like to mark this thread as resolved?")
|
||||||
passed_info.update({"msg": msg})
|
passed_info.update({"msg": msg})
|
||||||
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:
|
||||||
await ctx.message.add_reaction("❌")
|
await ctx.message.add_reaction("❌")
|
||||||
|
|
||||||
class ResolvedButtons(ui.View):
|
class ResolvedButtons(ui.View):
|
||||||
|
|
Loading…
Reference in a new issue