Set members intent

This commit is contained in:
2021-01-19 11:37:36 +01:00
parent 94597b45ad
commit 6a56c941d8

4
bot.py
View File

@@ -46,7 +46,9 @@ OWNER_ID = 327126546970312739
OCH_LOEH_SOUND = "assets/och_loeh.mp3" OCH_LOEH_SOUND = "assets/och_loeh.mp3"
config_load() config_load()
bot = commands.Bot(command_prefix=config.get('prefix')) intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix=config.get('prefix'), intents=intents)
if 'LIBOPUS' in os.environ and not len(os.environ['LIBOPUS']) == 0: if 'LIBOPUS' in os.environ and not len(os.environ['LIBOPUS']) == 0:
discord.opus.load_opus(os.environ['LIBOPUS']) discord.opus.load_opus(os.environ['LIBOPUS'])