[on_reaction_add] threadparentid fix >>> testing_the_bot, ctx.reply no required role feedback
Browse files
app.py
CHANGED
@@ -99,7 +99,8 @@ async def safetychecks(ctx):
|
|
99 |
guild = bot.get_guild(guild_id)
|
100 |
required_role = guild.get_role(required_role_id)
|
101 |
if required_role not in ctx.author.roles:
|
102 |
-
print(f"Error: The user does not have the required role to use that command. ({required_role} is the correct role)")
|
|
|
103 |
return False
|
104 |
else:
|
105 |
await ctx.reply(f"β
{ctx.author} has the required role {required_role}")
|
@@ -408,7 +409,7 @@ async def on_reaction_add(reaction, user): # ctx = await bot.get_context(reac
|
|
408 |
threadparentid = thread.parent.id
|
409 |
|
410 |
if not user.bot:
|
411 |
-
if threadparentid ==
|
412 |
# 811235357663297546 = lunarflu
|
413 |
if reaction.message.attachments:
|
414 |
if user.id == reaction.message.mentions[0].id: # if user.id == reaction.message.mentions[0].id:
|
|
|
99 |
guild = bot.get_guild(guild_id)
|
100 |
required_role = guild.get_role(required_role_id)
|
101 |
if required_role not in ctx.author.roles:
|
102 |
+
print(f"Error: The user does not have the required role to use that command. ({required_role} is the correct role)")
|
103 |
+
await ctx.reply(f"β{ctx.author} does not have the required role to use that command. ({required_role} is the correct role)")
|
104 |
return False
|
105 |
else:
|
106 |
await ctx.reply(f"β
{ctx.author} has the required role {required_role}")
|
|
|
409 |
threadparentid = thread.parent.id
|
410 |
|
411 |
if not user.bot:
|
412 |
+
if threadparentid == 1113182673859518514: # testing-the-bot
|
413 |
# 811235357663297546 = lunarflu
|
414 |
if reaction.message.attachments:
|
415 |
if user.id == reaction.message.mentions[0].id: # if user.id == reaction.message.mentions[0].id:
|