Fix reaction_roles example logic

This commit is contained in:
Byambadalai Sumiya 2020-12-22 15:05:41 +08:00 committed by GitHub
parent e2d4c6d2b1
commit 35db712c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ class RoleReactClient(discord.Client):
async def on_raw_reaction_remove(self, payload):
"""Removes a role based on a reaction emoji."""
# Make sure that the message the user is reacting to is the one we care about
if payload.message_id == self.role_message_id:
if payload.message_id != self.role_message_id:
return
try: