You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm writing a command:
It sends a button that can be clicked by any user
On each click, the bot reacts by sending some ephemeral messages to the user who clicked
As the user keeps clicking, the button won't be easily reachable anymore
The user rewrites the command to create a new button
=> On a new click, we receive a DiscordApiError due to the fact that the collector is on channels only
node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:497
throw new DiscordAPIError(data, 'code'in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[40060]: Interaction has already been acknowledged.
at SequentialHandler.runRequest (/home/lucas/dev/fishing-bot/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:497:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at SequentialHandler.queueRequest (/home/lucas/dev/fishing-bot/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:198:11)
at REST.request (/home/lucas/dev/fishing-bot/node_modules/@discordjs/rest/src/lib/REST.ts:343:20)
at ButtonInteraction.deferReply (/home/lucas/dev/fishing-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:69:5)
It is due to channel collectors returning component interactions for any component within that channel.
Describe the solution you'd like
add on option to do <Message>.createMessageComponentCollector(…) in addition to <Channel>.createMessageComponentCollector(…) (currently the only option)
Describe alternatives you've considered
The only alternative I would have would be sending many / commands to replace that button, which is not what I'd like
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm writing a command:
=> On a new click, we receive a DiscordApiError due to the fact that the collector is on channels only
It is due to channel collectors returning component interactions for any component within that channel.
Describe the solution you'd like
add on option to do
<Message>.createMessageComponentCollector(…)
in addition to<Channel>.createMessageComponentCollector(…)
(currently the only option)Describe alternatives you've considered
The only alternative I would have would be sending many / commands to replace that button, which is not what I'd like
The text was updated successfully, but these errors were encountered: