aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar vcokltfre <[email protected]>2021-04-05 14:24:30 +0100
committerGravatar GitHub <[email protected]>2021-04-05 14:24:30 +0100
commit56c675ad932dde14c970d48d864e3b80013f1399 (patch)
treef3ac61f242ee2b7a8b6aee24fe9d5f661b344347
parentMerge pull request #1479 from python-discord/limit-nominate-command-channels (diff)
chore: don't create an instance of intents before calling its classmethod
-rw-r--r--bot/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 3a2af472d..914da9c98 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -111,7 +111,7 @@ class Bot(commands.Bot):
loop = asyncio.get_event_loop()
allowed_roles = [discord.Object(id_) for id_ in constants.MODERATION_ROLES]
- intents = discord.Intents().all()
+ intents = discord.Intents.all()
intents.presences = False
intents.dm_typing = False
intents.dm_reactions = False