From 56c675ad932dde14c970d48d864e3b80013f1399 Mon Sep 17 00:00:00 2001 From: vcokltfre Date: Mon, 5 Apr 2021 14:24:30 +0100 Subject: chore: don't create an instance of intents before calling its classmethod --- bot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3