fix 2
Browse files
app.py
CHANGED
@@ -139,13 +139,12 @@ async def on_reaction_add(reaction, user):
|
|
139 |
|
140 |
# do they have the required (verified) role?
|
141 |
guild = reaction.message.guild
|
142 |
-
member = guild.get_member(user.id)
|
143 |
|
144 |
# Check if the user has the desired role
|
145 |
required_role_id = 897376942817419265 # huggingfolks for now
|
146 |
required_role = guild.get_role(required_role_id)
|
147 |
|
148 |
-
if required_role not in
|
149 |
return
|
150 |
|
151 |
attachment = reaction.message.attachments[0]
|
|
|
139 |
|
140 |
# do they have the required (verified) role?
|
141 |
guild = reaction.message.guild
|
|
|
142 |
|
143 |
# Check if the user has the desired role
|
144 |
required_role_id = 897376942817419265 # huggingfolks for now
|
145 |
required_role = guild.get_role(required_role_id)
|
146 |
|
147 |
+
if required_role not in user.roles:
|
148 |
return
|
149 |
|
150 |
attachment = reaction.message.attachments[0]
|