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 toolkit11mo 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 docs11mo ago
:guide: Slash Commands: Parsing options read more
xx_lavaboy_xx123
xx_lavaboy_xx12311mo ago
messages aren't interactions, u gotta use messageCreate event
rio
rioOP11mo ago
and what argument should I pass
d.js docs
d.js docs11mo ago
:property: Message#content The content of the message. (more...)
rio
rioOP11mo ago
I just started learning discord js
NyR
NyR11mo 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
Harnes11mo ago
For receiving messageCreate event you must provide guild messages intent And for content you also need to provide message content intent

Did you find this page helpful?