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 toolkit6mo 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
Syjalo6mo ago
interaction.user, not interation.author
TATHAN
TATHANOP6mo ago
I already tried this and nothing happened
NyR
NyR6mo ago
Add fetchReply: true to your reply option, and correct your filter as you were told
crimsonn
crimsonn6mo ago
I would say combine the two suggestions above, there's not much else that looks like it would error the code.
TATHAN
TATHANOP6mo 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 docs6mo 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
TATHANOP6mo ago
Thanks !
Want results from more Discord servers?
Add your server