From 5c026824d8274a6a02db11dd29d9ef9a6d717c20 Mon Sep 17 00:00:00 2001 From: xenofem Date: Sat, 29 Oct 2022 15:53:29 -0400 Subject: [PATCH] message content intent --- bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index ce90397..5600618 100644 --- a/bot.py +++ b/bot.py @@ -5,7 +5,9 @@ import sys SPOILER_REGEX = re.compile(r'spoil|\bcw\b', re.IGNORECASE) -client = discord.Client() +intents = discord.Intents.default() +intents.message_content = True +client = discord.Client(intents=intents) def mentions_me(message): return client.user in message.mentions or [client.user] in [role.members for role in message.role_mentions]