message content intent
This commit is contained in:
parent
12051f99a7
commit
5c026824d8
4
bot.py
4
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]
|
||||
|
|
Loading…
Reference in a new issue