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 toolkit3mo 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 docs3mo ago
:guide: Slash Commands: Parsing options read more
xx_lavaboy_xx123
messages aren't interactions, u gotta use messageCreate event
rio_6463
rio_64633mo ago
and what argument should I pass
d.js docs
d.js docs3mo ago
:property: Message#content The content of the message. (more...)
rio_6463
rio_64633mo ago
I just started learning discord js
NyR
NyR3mo 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
Harnes3mo 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
More Posts