aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2021-04-05 17:56:50 +0100
committerGravatar GitHub <[email protected]>2021-04-05 17:56:50 +0100
commitbfb4d03ce68e892a6a63d31a97debf4a49debb8d (patch)
treed944e1f134eec598ef0cb5355ed01a0966044b0b
parentMerge pull request #1501 from python-discord/ks123/ghcr-token-to-github (diff)
parentMerge branch 'main' into vcokltfre-intents-classmethod (diff)
Merge pull request #1500 from python-discord/vcokltfre-intents-classmethod
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