aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-10-05 14:11:27 +0200
committerGravatar kwzrd <[email protected]>2020-10-05 14:17:49 +0200
commitbb18023d3ba2f7808a2a16ea7f70cc3b39a43574 (patch)
treef98bea66a36f9f79efaba70e5773eac26f1757cf
parentDeps: bump 'discord.py' to 1.5 & re-lock (diff)
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.
-rw-r--r--bot/bot.py10
1 files changed, 10 insertions, 0 deletions
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,
)