diff options
author | 2020-10-31 13:03:26 +0000 | |
---|---|---|
committer | 2020-10-31 13:03:26 +0000 | |
commit | 0225ba9914790109f94e2b479f0eb046cb3d5eac (patch) | |
tree | db85be372d82fab69639b7a52501424fe12f04f9 /bot/bot.py | |
parent | Merge pull request #479 from Anubhav1603/bug_ec (diff) | |
parent | Merge branch 'master' into discordpy-15 (diff) |
Merge pull request #478 from python-discord/discordpy-15
Bump 'discord.py' to 1.5.1 and use explicit intents
Diffstat (limited to 'bot/bot.py')
-rw-r--r-- | bot/bot.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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, ) |