Ver código fonte

try fixing the problem

BaumSplitter41 1 semana atrás
pai
commit
f3d48ab2e9
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      VPD_BOT/cogs/reaction_roles.py

+ 2 - 1
VPD_BOT/cogs/reaction_roles.py

@@ -160,7 +160,8 @@ class Reactionroles(commands.Cog):
             return
         if payload.member.bot:
             return
-        
+        if payload.user_id == self.bot.user.id:
+            return
         guild = self.bot.get_guild(payload.guild_id)
         if guild is None:
             return