Set members intent
This commit is contained in:
4
bot.py
4
bot.py
@@ -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'])
|
||||||
|
|||||||
Reference in New Issue
Block a user