Collectors not working

Hey ! So I have a command (in a different file) that open a modal and when the modal is submitted (in the index.js) I add a button to the reply message and want to do something when the user click the button and reuse modal informations. So I tried collectors but when the user click the button, nothing happen. But when the time is out," End "appear in the console Here is my code : https://code.litarvan.com/jopubaza.js
8 Replies
d.js toolkit
d.js toolkit3w 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!
Syjalo
Syjalo3w ago
interaction.user, not interation.author
TATHAN
TATHAN3w ago
I already tried this and nothing happened
NyR
NyR3w ago
Add fetchReply: true to your reply option, and correct your filter as you were told
crimsonn
crimsonn3w ago
I would say combine the two suggestions above, there's not much else that looks like it would error the code.
TATHAN
TATHAN3w ago
Ok so I used an other method for my problem but I have a new one x) I look for the basic message collector and copied the code in the guide but even with that, he don't collect my message ! https://code.litarvan.com/roxiwewe.typescript
d.js docs
d.js docs3w ago
If you aren't getting content, embeds or attachments of a message, make sure you have the MessageContent intent enabled in the Developer Portal and provide it to your client:
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent]
});
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent]
});
TATHAN
TATHAN3w ago
Thanks !