#Bot only responds in dms
1 messages · Page 1 of 1 (latest)
This is the disnake server. You're using discord.py it seems. We don't support that library here.
In the future, you'll need to ask for help there: https://discord.gg/dpy
However, the issue is with your intents. You don't have message_content which is required for the bot to access message content in guild channels.
DMs and messages where the bot is tagged, this doesn't apply.
oooh I see ok thanks for giving me the server link!
I see, tysm, I'll look into that!
I'd also recommend using the correct tools for the job. In this case, you want to use commands.Bot to create proper commands rather than all this manual work with on_message
ah ok thanks!
yea that was my original method and then it didn't work so I redid all my code into client cause I thought that was the problem 😓
Right. For prefix commands like this, message_content intents are still required due to the nature of how these commands work. Internally, they're still on_message events and require access to the content, just the same.
but the lib does all the heavy lifting for you so you just focus on building the command rather than all the if statements to validate the content.
