𝗦𝗮𝘁𝗮𝗻
𝗦𝗮𝘁𝗮𝗻
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/17/2024 in #djs-questions
Question on message component collector
changed to single collector and it's working like a charm, thank you so much
18 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/17/2024 in #djs-questions
Question on message component collector
alrighty, thank you so much for your help, i'll try this out and see how it goes
18 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/17/2024 in #djs-questions
Question on message component collector
i think you're correct because i logged the interaction and 2nd time it was sending 2 interactions
18 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/17/2024 in #djs-questions
Question on message component collector
weird stuff happens when i use editReply, it works the first time, the 2nd time i get unknown interaction
18 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/17/2024 in #djs-questions
Question on message component collector
if i'm using selectInteraction.deferUpdate() and then selectInteraction.update({ i'm getting interaction already replied error
18 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/17/2024 in #djs-questions
Question on message component collector
have i set up my collectors correctly? the string select collector is nested inside the button collector
18 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/10/2024 in #djs-questions
Need help with pagination
thank you so so much, you're a lifesaver 🤍🤍 i removed the handler and it's working fine now
12 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/10/2024 in #djs-questions
Need help with pagination
i think i understand it now, i have separate button files for other buttons but not these, there is a button handler file which scans the package for button files so do you think that's the issue?
12 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/10/2024 in #djs-questions
Need help with pagination
that's the only place where i see that ephemeral message in entire code
12 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/10/2024 in #djs-questions
Need help with pagination
i thought it's a default ephemeral, but after you said it's custom, i checked and found below in my interaction event handler: const button = client.buttons.get(interaction.customId); if (!button) return await interaction.reply({ content: "There was an error", ephemeral: true, }); try { await button.execute(interaction, client); } catch (err) { console.log(err); await interaction.reply({ content: "There was an error executing this button", ephemeral: true, }); }
12 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/10/2024 in #djs-questions
Need help with pagination
No description
12 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/10/2024 in #djs-questions
Need help with pagination
the button doesn't work and i get an ephemeral saying 'There was an error' (image below)
12 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/10/2024 in #djs-questions
Need help with pagination
DiscordAPIError[10062]: Unknown interaction at handleErrors (D:\git\rtd-bot\node_modules\discord.js\node_modules\@discordjs\rest\dist\index.js:727:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async BurstHandler.runRequest (D:\git\rtd-bot\node_modules\discord.js\node_modules\@discordjs\rest\dist\index.js:831:23) at async _REST.request (D:\git\rtd-bot\node_modules\discord.js\node_modules\@discordjs\rest\dist\index.js:1272:22) at async ButtonInteraction.update (D:\git\rtd-bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:237:5) at async InteractionCollector.<anonymous> (D:\git\rtd-bot\src\events\playerPagination.js:76:17) { requestBody: { files: [], json: { type: 7, data: { content: undefined, tts: false, nonce: undefined, enforce_nonce: false, embeds: [ { color: 0, title: 'Page 2', description: 'This is the second page with default content.' } ], components: [ { type: 1, components: [Array] } ], username: undefined, avatar_url: undefined, allowed_mentions: undefined, flags: undefined, message_reference: undefined, attachments: undefined, sticker_ids: undefined, thread_name: undefined, applied_tags: undefined, poll: undefined } } }, rawError: { message: 'Unknown interaction', code: 10062 }, code: 10062, status: 404, method: 'POST', url: 'https://discord.com/api/v10/interactions/1316090639003422810/aW50ZXJhY3Rpb246MTMxNjA5MDYzOTAwMzQyMjgxMDppTnVJVzE4dFRkbTVKS29ZMExNdEZ2S0tDSndFdjBiOWp6TENVaXdDYTJDR0duRVNrU2lLcUJKWW1LY1lWQmM1ZGJRNWQzVTM5Y1haYkpCcllwQW56eE1NempTVXNBaFQ3aTl2dWZNQ3RuU1RTb0VCVXY0anRNeUFnZ25YdnFLTA/callback' } this is after i changed msg.edit to i.update
12 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/10/2024 in #djs-questions
Need help with pagination
still getting unknown interaction
12 replies
DIdiscord.js - Imagine ❄
Created by 𝗦𝗮𝘁𝗮𝗻 on 12/10/2024 in #djs-questions
Need help with pagination
12 replies