aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Izan <[email protected]>2021-10-11 14:47:16 +0100
committerGravatar Izan <[email protected]>2021-10-11 15:01:07 +0100
commitaa272dbe789e86013969bc6f4e506d70ddfc63be (patch)
treed9906a0474040fa37b93f9495a78e59dedec4cfb
parentCheck role id in MODERATION_ROLES instead of comparing to moderation_team and... (diff)
Check role id in STAFF_ROLES instead of comparing to helpers
-rw-r--r--bot/exts/events/advent_of_code/_cog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/events/advent_of_code/_cog.py b/bot/exts/events/advent_of_code/_cog.py
index 4d811fa4..0a18c261 100644
--- a/bot/exts/events/advent_of_code/_cog.py
+++ b/bot/exts/events/advent_of_code/_cog.py
@@ -9,7 +9,7 @@ from discord.ext import commands
from bot.bot import Bot
from bot.constants import (
- AdventOfCode as AocConfig, Channels, Colours, Emojis, Month, Roles, WHITELISTED_CHANNELS,
+ AdventOfCode as AocConfig, Channels, Colours, Emojis, Month, Roles, STAFF_ROLES, WHITELISTED_CHANNELS,
)
from bot.exts.events.advent_of_code import _helpers
from bot.utils.decorators import InChannelCheckFailure, in_month, whitelist_override, with_role
@@ -145,7 +145,7 @@ class AdventOfCode(commands.Cog):
author = ctx.author
log.info(f"{author.name} ({author.id}) has requested a PyDis AoC leaderboard code")
- if AocConfig.staff_leaderboard_id and any(r.id == Roles.helpers for r in author.roles):
+ if AocConfig.staff_leaderboard_id and any(r.id in STAFF_ROLES for r in author.roles):
join_code = AocConfig.leaderboards[AocConfig.staff_leaderboard_id].join_code
else:
try: