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 toolkit10mo 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 docs10mo ago
:guide: Slash Commands: Parsing options read more
xx_lavaboy_xx123
xx_lavaboy_xx12310mo ago
messages aren't interactions, u gotta use messageCreate event
rio
rioOP10mo ago
and what argument should I pass
d.js docs
d.js docs10mo ago
:property: Message#content The content of the message. (more...)
rio
rioOP10mo ago
I just started learning discord js
NyR
NyR10mo 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
Harnes10mo 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