How to get the content of a message?

I'm trying to get the content of a message from the 'messageCreate' event. Any ideas?
19 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
WreckNoFear
WreckNoFearOP3y ago
It's not an interaction though, its just a messageCreate event
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
WreckNoFear
WreckNoFearOP3y ago
ah.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
WreckNoFear
WreckNoFearOP3y ago
hm alright I get what you mean but say if this is being exported
WreckNoFear
WreckNoFearOP3y ago
WreckNoFear
WreckNoFearOP3y ago
something like that then interaction is undefined.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
WreckNoFear
WreckNoFearOP3y ago
oh. gotcha all good thanks for the help anyways
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
WreckNoFear
WreckNoFearOP3y ago
ty
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
WreckNoFear
WreckNoFearOP3y ago
right
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
WreckNoFear
WreckNoFearOP3y ago
trying to get the message content what the message contains
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
WreckNoFear
WreckNoFearOP3y ago
all good, figured out!
Want results from more Discord servers?
Add your server