From bb18023d3ba2f7808a2a16ea7f70cc3b39a43574 Mon Sep 17 00:00:00 2001 From: kwzrd Date: Mon, 5 Oct 2020 14:11:27 +0200 Subject: Intents: initial setup For now, we require the privileged 'Guild Members' intent, to maintain all current functionality (e.g. Member convertors working with IDs). In the future, we may look into disabling this intent. --- bot/bot.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bot/bot.py') diff --git a/bot/bot.py b/bot/bot.py index ffaf4284..d95ac2d8 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -204,8 +204,18 @@ class SeasonalBot(commands.Bot): _allowed_roles = [discord.Object(id_) for id_ in MODERATION_ROLES] + +_intents = discord.Intents().all() +_intents.bans = False +_intents.integrations = False +_intents.invites = False +_intents.presences = False +_intents.typing = False +_intents.webhooks = False + bot = SeasonalBot( command_prefix=Client.prefix, activity=discord.Game(name=f"Commands: {Client.prefix}help"), allowed_mentions=discord.AllowedMentions(everyone=False, roles=_allowed_roles), + intents=_intents, ) -- cgit v1.2.3