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/fun/trivia_quiz.py | |
parent | Merge pull request #897 from python-discord/command-prefix-fix (diff) |
Rename `Roles.moderator` to `Roles.moderation_team`
Diffstat (limited to 'bot/exts/fun/trivia_quiz.py')
-rw-r--r-- | bot/exts/fun/trivia_quiz.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |