aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-31 15:02:58 +0000
committerGravatar GitHub <[email protected]>2020-10-31 15:02:58 +0000
commit6e15ab137172f4797bcf925964ae7302e4e1e69f (patch)
tree3f5f72ae6a1986f0ac0755ab51e9a38e83c85cad /bot/bot.py
parentMerge branch 'master' into candy (diff)
parentMerge pull request #478 from python-discord/discordpy-15 (diff)
Merge branch 'master' into candy
Diffstat (limited to 'bot/bot.py')
-rw-r--r--bot/bot.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/bot/bot.py b/bot/bot.py
index ffaf4284..cef4c4d4 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -204,8 +204,17 @@ class SeasonalBot(commands.Bot):
_allowed_roles = [discord.Object(id_) for id_ in MODERATION_ROLES]
+
+_intents = discord.Intents.default() # Default is all intents except for privileged ones (Members, Presences, ...)
+_intents.bans = False
+_intents.integrations = False
+_intents.invites = 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,
)