20 Replies
- 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!
node version
To receive direct message events on
"messageCreate"
with your bot, you will need:
- The DirectMessages
gateway intent
- The Channel
partial setting
Updated to this, still no messageCreate being fired.
You do want the messageCreate to fire from dms, not from a guild channel, right?
I am trying to see when any message is being fired from a guild in a channel.
^
Then you need the GuildMessages intent
Assuming like this?
yes
I tried that.
Still nothing.
can you log eventFiles above the loop
I also tried with Events.MessageCreate
rq let me look that up 💀
wait
no
wrong channel, wasnt meant for you
oops lol
@PixelZero this is how I do it
can also use async (msg) but im new to javascript and don't know what that does
for reference that would like this:
like i said im new to this so maybe you just need to not include
function(){}
and instead do msg => {}
or async (msg) => {}
if that doesn't work if there's some error message please show itNo error message for the methods I’ve tried already. I’ll try this in the morning when I get on my pc 👍
ok 💀
That seemed to have worked.
It's weird cuz the other code is now working too 💀
idk what fixed it but it's working now
thanks for your help.