Skip to content

Commit 4cb7919

Browse files
committed
Small intent update fix
1 parent 33f3112 commit 4cb7919

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

bot.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,15 @@
6161

6262
intents = disnake.Intents.default()
6363

64-
bot = Bot(command_prefix=config["prefix"], intents=intents, help_command=None)
64+
"""
65+
Remove this if you don't want to use prefix (normal) commands.
66+
It is recommended to use slash commands and therefore not use prefix commands.
67+
68+
If you want to use prefix commands, enable the intent below in the Discord developer portal.
69+
"""
70+
intents.message_content = True
71+
72+
bot = Bot(command_prefix=commands.when_mentioned_or(config["prefix"]), intents=intents, help_command=None)
6573

6674
"""
6775
Create a bot variable to access the config file in cogs so that you don't need to import it every time.

0 commit comments

Comments
 (0)