Yawrf
Yawrf
DIAdiscord.js - Imagine an app
Created by Yawrf on 4/29/2025 in #djs-questions
Getting messageCreate from one guild but not from another
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
4 replies
DIAdiscord.js - Imagine an app
Created by Yawrf on 4/29/2025 in #djs-questions
Getting messageCreate from one guild but not from another
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
4 replies