From 6a56c941d88512553e9448c45c43d368d41660e6 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Tue, 19 Jan 2021 11:37:36 +0100 Subject: [PATCH] Set members intent --- bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 20ee8df..669aeb0 100644 --- a/bot.py +++ b/bot.py @@ -46,7 +46,9 @@ OWNER_ID = 327126546970312739 OCH_LOEH_SOUND = "assets/och_loeh.mp3" 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: discord.opus.load_opus(os.environ['LIBOPUS'])