From ea083608f3fed4ab95e038b26b4ce5a9ac5b9b6a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Sep 2023 19:35:46 -0400 Subject: [PATCH] fix(forums): fixed an add_reaction that happened regardless of an isinstance check --- forums/forums.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forums/forums.py b/forums/forums.py index 5ae5a61..a48b33f 100644 --- a/forums/forums.py +++ b/forums/forums.py @@ -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):