aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/utils/checks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/checks.py b/bot/utils/checks.py
index 37dc657f7..195edab0f 100644
--- a/bot/utils/checks.py
+++ b/bot/utils/checks.py
@@ -37,7 +37,7 @@ def without_role_check(ctx: Context, *role_ids: int) -> bool:
"This command is restricted by the without_role decorator. Rejecting request.")
return False
- author_roles = (role.id for role in ctx.author.roles)
+ author_roles = [role.id for role in ctx.author.roles]
check = all(role not in author_roles for role in role_ids)
log.trace(f"{ctx.author} tried to call the '{ctx.command.name}' command. "
f"The result of the without_role check was {check}.")