Getting messageCreate from one guild but not from another

As title indicates, I'm getting messageCreate events from one server, but I'm not from another server. It has all the same permissions (and then some, even tested with administrator), it's just not registering anything from it. Any ideas what could be causing this?
2 Replies
d.js toolkit
d.js toolkit2d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Yawrf
YawrfOP2d ago
Relevant code to prove there's nothing funky going on within my method that may be filtering out:
client.on('messageCreate', async message => handleMessage(message));
async function handleMessage(message) {
console.log('Received message');
// Other code
}
client.on('messageCreate', async message => handleMessage(message));
async function handleMessage(message) {
console.log('Received message');
// Other code
}
discordjs: 14.9.2 node: 21.7.3 Nevermind, I finally actually thought about checking what was in my cached guilds and realized I had somehow imported the token for a different bot than I thought I had when building this. 🤦‍♂️ Upon regenerating my token (again) and making sure it was the right one in there, it works as expected, I'm just stupid lmao

Did you find this page helpful?