aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-09-17 13:35:38 +0100
committerGravatar Chris Lovering <[email protected]>2021-09-17 13:35:38 +0100
commitfe248cc05a3c50beb064c43aef224c0204512df9 (patch)
tree47f60675edca6892bb96563b7025470235354cfa
parentAdd metricity to docker-compose (diff)
Remove duplicate roles when defining allowed_mentions
-rw-r--r--bot/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 914da9c98..db3d651a3 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -109,7 +109,7 @@ class Bot(commands.Bot):
def create(cls) -> "Bot":
"""Create and return an instance of a Bot."""
loop = asyncio.get_event_loop()
- allowed_roles = [discord.Object(id_) for id_ in constants.MODERATION_ROLES]
+ allowed_roles = list({discord.Object(id_) for id_ in constants.MODERATION_ROLES})
intents = discord.Intents.all()
intents.presences = False