diff options
| author | 2021-10-08 14:45:02 +0100 | |
|---|---|---|
| committer | 2021-10-11 15:00:04 +0100 | |
| commit | 11d00e7f846748fb87f02b5f0bfecc92feac198c (patch) | |
| tree | 099d81d258cc3f3ca8d6f585fdd28eb44fa74d13 /bot/exts | |
| parent | Merge pull request #897 from python-discord/command-prefix-fix (diff) | |
Rename `Roles.moderator` to `Roles.moderation_team`
Diffstat (limited to 'bot/exts')
| -rw-r--r-- | bot/exts/fun/snakes/_utils.py | 2 | ||||
| -rw-r--r-- | bot/exts/fun/trivia_quiz.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/fun/snakes/_utils.py b/bot/exts/fun/snakes/_utils.py index de51339d..46834c2c 100644 --- a/bot/exts/fun/snakes/_utils.py +++ b/bot/exts/fun/snakes/_utils.py @@ -718,4 +718,4 @@ class SnakeAndLaddersGame: @staticmethod def _is_moderator(user: Member) -> bool: """Return True if the user is a Moderator.""" - return any(Roles.moderator == role.id for role in user.roles) + return any(Roles.moderation_team == role.id for role in user.roles) diff --git a/bot/exts/fun/trivia_quiz.py b/bot/exts/fun/trivia_quiz.py index 712c8a12..60afbb06 100644 --- a/bot/exts/fun/trivia_quiz.py +++ b/bot/exts/fun/trivia_quiz.py @@ -550,7 +550,7 @@ class TriviaQuiz(commands.Cog): if self.game_status[ctx.channel.id]: # Check if the author is the game starter or a moderator. if ctx.author == self.game_owners[ctx.channel.id] or any( - Roles.moderator == role.id for role in ctx.author.roles + Roles.moderation_team == role.id for role in ctx.author.roles ): self.game_status[ctx.channel.id] = False del self.game_owners[ctx.channel.id] |