what should I do if I want to print the string that the user entered in the discord chat ...

client.on('interactionCreate', (interaction) => { interaction.reply(????) });
8 Replies
d.js toolkit
d.js toolkit9mo 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!
d.js docs
d.js docs9mo ago
:guide: Slash Commands: Parsing options read more
xx_lavaboy_xx123
messages aren't interactions, u gotta use messageCreate event
rio
rioOP9mo ago
and what argument should I pass
d.js docs
d.js docs9mo ago
:property: Message#content The content of the message. (more...)
rio
rioOP9mo ago
I just started learning discord js
NyR
NyR9mo ago
Well the message object is included in the callback of messageCreate event, so pass that For docs, pls refer to what lavaboy sent above ^
Harnes
Harnes9mo ago
For receiving messageCreate event you must provide guild messages intent And for content you also need to provide message content intent
Want results from more Discord servers?
Add your server