From 1bdb41f75daf29f1e31722d3ed8d0d24ed75a945 Mon Sep 17 00:00:00 2001 From: deflax Date: Tue, 16 Jan 2024 18:16:02 +0200 Subject: [PATCH] set intents --- src/discordbot/discordbot.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/discordbot/discordbot.py b/src/discordbot/discordbot.py index df60ffc..0aadeaa 100644 --- a/src/discordbot/discordbot.py +++ b/src/discordbot/discordbot.py @@ -11,7 +11,13 @@ bot_token = os.environ.get('DISCORDBOT_TOKEN', 'token') scheduler_hostname = os.environ.get('SCHEDULER_API_HOSTNAME', 'tv.example.com') # Discord API Intents -intents = discord.Intents.default() +intents = discord.Intents.all() +intents.members = True +intents.guilds = True +intents.messages = True +intents.reactions = True +intents.presences = True +intents.message_content = True # Discord client bot = commands.Bot(command_prefix="!", intents=intents)