ShowCast
ShowCast
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by ShowCast on 5/6/2024 in #djs-questions
Develop with Entitlements
Sounds like the only possible solution. Even the Support told me there is no other way..
4 replies
DIAdiscord.js - Imagine an app
Created by ShowCast on 3/13/2024 in #djs-questions
Follow Up to interaction.deferUpdate() throws error
Alright thank you for your help :PES_Ok: :aPES_Love:
11 replies
DIAdiscord.js - Imagine an app
Created by ShowCast on 3/13/2024 in #djs-questions
Follow Up to interaction.deferUpdate() throws error
So you mean something defers the interaction even before my deferUpdate() call?
11 replies
DIAdiscord.js - Imagine an app
Created by ShowCast on 3/13/2024 in #djs-questions
Follow Up to interaction.deferUpdate() throws error
Sure. I am using sapphire as a framework but here you go
2024-03-14 10:59:39 - ERROR - Encountered error while handling an interaction handler parse method for interaction-handler "lfgRequestButtons" at path "C:\Users\paulh\Documents\Projects\discord-bot\dist\interaction-handlers\button\lfgRequestButtons.js" Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
2024-03-14 10:59:39 - ERROR - at ButtonInteraction.deferUpdate (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:199:46)
2024-03-14 10:59:39 - ERROR - at LfgRequestButtons.parse (C:\Users\paulh\Documents\Projects\discord-bot\dist\interaction-handlers\button\lfgRequestButtons.js:62:35)
2024-03-14 10:59:39 - ERROR - at C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@sapphire\framework\dist\cjs\lib\structures\InteractionHandlerStore.cjs:22:68
2024-03-14 10:59:39 - ERROR - at Object.fromAsync (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@sapphire\result\dist\cjs\index.cjs:619:46)
2024-03-14 10:59:39 - ERROR - at _InteractionHandlerStore.run (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@sapphire\framework\dist\cjs\lib\structures\InteractionHandlerStore.cjs:22:44)
2024-03-14 10:59:39 - ERROR - at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-03-14 10:59:39 - ERROR - at async _CoreListener.run (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@sapphire\framework\dist\cjs\listeners\CoreInteractionCreate.cjs:21:7)
2024-03-14 10:59:39 - ERROR - at async Object.fromAsync (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@sapphire\result\dist\cjs\index.cjs:619:22)
2024-03-14 10:59:39 - ERROR - at async _CoreListener._run (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@sapphire\framework\dist\cjs\lib\structures\Listener.cjs:27:22) {
2024-03-14 10:59:39 - ERROR - code: 'InteractionAlreadyReplied'
2024-03-14 10:59:39 - ERROR - }
2024-03-14 10:59:39 - ERROR - Encountered error while handling an interaction handler parse method for interaction-handler "lfgRequestButtons" at path "C:\Users\paulh\Documents\Projects\discord-bot\dist\interaction-handlers\button\lfgRequestButtons.js" Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
2024-03-14 10:59:39 - ERROR - at ButtonInteraction.deferUpdate (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:199:46)
2024-03-14 10:59:39 - ERROR - at LfgRequestButtons.parse (C:\Users\paulh\Documents\Projects\discord-bot\dist\interaction-handlers\button\lfgRequestButtons.js:62:35)
2024-03-14 10:59:39 - ERROR - at C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@sapphire\framework\dist\cjs\lib\structures\InteractionHandlerStore.cjs:22:68
2024-03-14 10:59:39 - ERROR - at Object.fromAsync (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@sapphire\result\dist\cjs\index.cjs:619:46)
2024-03-14 10:59:39 - ERROR - at _InteractionHandlerStore.run (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@sapphire\framework\dist\cjs\lib\structures\InteractionHandlerStore.cjs:22:44)
2024-03-14 10:59:39 - ERROR - at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-03-14 10:59:39 - ERROR - at async _CoreListener.run (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@sapphire\framework\dist\cjs\listeners\CoreInteractionCreate.cjs:21:7)
2024-03-14 10:59:39 - ERROR - at async Object.fromAsync (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@sapphire\result\dist\cjs\index.cjs:619:22)
2024-03-14 10:59:39 - ERROR - at async _CoreListener._run (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@sapphire\framework\dist\cjs\lib\structures\Listener.cjs:27:22) {
2024-03-14 10:59:39 - ERROR - code: 'InteractionAlreadyReplied'
2024-03-14 10:59:39 - ERROR - }
Same error with editReply() btw
11 replies
DIAdiscord.js - Imagine an app
Created by ShowCast on 3/13/2024 in #djs-questions
Follow Up to interaction.deferUpdate() throws error
First I call await interaction.deferUpdate(); After that I fetch some data. And after some lines of fetching data comes
await interaction.followUp({
content: await resolveKey(interaction, Language.buildCommandTranslationKey(TranslationKeys.lfg.request_partyleader_cannot_join)),
ephemeral: true
});
await interaction.followUp({
content: await resolveKey(interaction, Language.buildCommandTranslationKey(TranslationKeys.lfg.request_partyleader_cannot_join)),
ephemeral: true
});
I checked like 10x times. there is no interaction.reply() or anything else between those calls
11 replies
DIAdiscord.js - Imagine an app
Created by ShowCast on 3/13/2024 in #djs-questions
Follow Up to interaction.deferUpdate() throws error
DJS Version: 14.14.1 NodeJS Version: 18.17.1
11 replies
DIAdiscord.js - Imagine an app
Created by ShowCast on 9/9/2022 in #djs-questions
Builder Name localization error
Thanks for the quick answer!
11 replies
DIAdiscord.js - Imagine an app
Created by ShowCast on 9/9/2022 in #djs-questions
Builder Name localization error
Alrighty
11 replies
DIAdiscord.js - Imagine an app
Created by ShowCast on 9/9/2022 in #djs-questions
Builder Name localization error
But the problem is with "beschreibung" it works and with "Beschreibung" I get the error
11 replies
DIAdiscord.js - Imagine an app
Created by ShowCast on 9/9/2022 in #djs-questions
Builder Name localization error
It works with or without quotes on the key 😄
11 replies
DIAdiscord.js - Imagine an app
Created by ShowCast on 9/9/2022 in #djs-questions
Builder Name localization error
More useful infos: I am using sapphire in v3.1.0 The stacktrace:
Error: Invalid string format
at Object.run (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\node_modules\@sapphire\shapeshift\dist\index.js:1281:64)
at C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\node_modules\@sapphire\shapeshift\dist\index.js:113:66
at Array.reduce (<anonymous>)
at StringValidator.parse (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\node_modules\@sapphire\shapeshift\dist\index.js:113:29)
at validateName (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\dist\index.js:885:17)
at MixedClass.setNameLocalization (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\dist\index.js:974:5)
at C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\dist\index.js:984:59
at Array.forEach (<anonymous>)
at MixedClass.setNameLocalizations (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\dist\index.js:984:36)
at C:\Users\paulh\Documents\Projects\discord-bot\dist\infrastructure\discord\repository\CommandRepository.js:83:14
Error: Invalid string format
at Object.run (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\node_modules\@sapphire\shapeshift\dist\index.js:1281:64)
at C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\node_modules\@sapphire\shapeshift\dist\index.js:113:66
at Array.reduce (<anonymous>)
at StringValidator.parse (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\node_modules\@sapphire\shapeshift\dist\index.js:113:29)
at validateName (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\dist\index.js:885:17)
at MixedClass.setNameLocalization (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\dist\index.js:974:5)
at C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\dist\index.js:984:59
at Array.forEach (<anonymous>)
at MixedClass.setNameLocalizations (C:\Users\paulh\Documents\Projects\discord-bot\node_modules\@discordjs\builders\dist\index.js:984:36)
at C:\Users\paulh\Documents\Projects\discord-bot\dist\infrastructure\discord\repository\CommandRepository.js:83:14
npm list discord.js
[email protected] C:\Users\paulh\Documents\Projects\discord-bot
[email protected] C:\Users\paulh\Documents\Projects\discord-bot
node -v
v16.15.0
v16.15.0
11 replies