Explorar o código

fixing error.

BaumSplitter41 hai 2 semanas
pai
achega
27737296e7
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      VPD_BOT/cogs/reaction_roles.py

+ 2 - 1
VPD_BOT/cogs/reaction_roles.py

@@ -97,7 +97,8 @@ class reactionroles(commands.Cog):
                 await message.add_reaction(emoji)
             except Exception as e:
                 await ctx.respond(f"Failed to add reaction {emoji}: {e}", ephemeral=True)
-        return message.id
+        message_id = message.id
+        return message_id
         
 #-----------------------------------------------#