You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
408 B

  1. import config
  2. def check_if_staff(ctx):
  3. if not ctx.guild:
  4. return False
  5. return any(r.id in config.staff_role_ids for r in ctx.author.roles)
  6. def check_if_bot_manager(ctx):
  7. if not ctx.guild:
  8. return False
  9. return any(r.id == config.bot_manager_role_id for r in ctx.author.roles)
  10. def check_if_verified(ctx):
  11. return True
  12. def check_if_verified_or_dms(ctx):
  13. return True