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