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

This commit is contained in:
Seaswimmer 2023-09-07 19:35:46 -04:00
parent 6ee67f40e7
commit ea083608f3
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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):