Receiving non slash command messages
I'm trying to receive regular guild messages that aren't slash commands. I'm aware of the privacy issues, it's just a private bot for my friends and I running a local AI model for fun.
I used to use discord.js but it's obviously changed a lot over the years e.g. slash commands and I can't figure out receiving messages without a slash command.
I've enabled all privileged gateway intents on the discord dev dashboard and here is my code.
Nothing is being logged when I send messages in the testing server (which the bot is in with full permissions).
3 Replies
discord.js@14.21.0
node v24.5.0
I figured it out. I was missing the GuildMessages intent lol. Closing the issue.
The thread owner has marked this issue as solved.