Fix privileged intents

This commit is contained in:
Ave 2020-10-01 22:07:50 +03:00
parent d905db5666
commit 165ce2f442
No known key found for this signature in database
GPG key ID: 398DD7BD03276F6D

View file

@ -46,7 +46,11 @@ wanted_jsons = [
"data/invites.json", "data/invites.json",
] ]
bot = commands.Bot(command_prefix=get_prefix, description=config.bot_description) intents = discord.Intents.default()
intents.typing = False
intents.members = True
bot = commands.Bot(command_prefix=get_prefix, description=config.bot_description, intents=intents)
bot.help_command = commands.DefaultHelpCommand(dm_help=True) bot.help_command = commands.DefaultHelpCommand(dm_help=True)
bot.log = log bot.log = log
@ -226,8 +230,4 @@ for wanted_json in wanted_jsons:
with open(wanted_json, "w") as f: with open(wanted_json, "w") as f:
f.write("{}") f.write("{}")
intents = discord.Intents.default() bot.run(config.token, bot=True, reconnect=True)
intents.typing = False
intents.members = True
bot.run(config.token, bot=True, reconnect=True, intents=intents)