lunarflu HF Staff commited on
Commit
31cc706
Β·
1 Parent(s): 374981b

[on_reaction_add] threadparentid fix >>> testing_the_bot, ctx.reply no required role feedback

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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 == 1100458786826747945: # bot-test
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: