diff options
author | 2020-10-05 14:11:27 +0200 | |
---|---|---|
committer | 2020-10-05 14:17:49 +0200 | |
commit | bb18023d3ba2f7808a2a16ea7f70cc3b39a43574 (patch) | |
tree | f98bea66a36f9f79efaba70e5773eac26f1757cf /bot/bot.py | |
parent | Deps: 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.
Diffstat (limited to 'bot/bot.py')
-rw-r--r-- | bot/bot.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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, ) |