ShowCast
ShowCast
Explore posts from servers
SIASapphire - Imagine a framework
Created by ShowCast on 9/13/2024 in #sapphire-support
Manual Scheduled Task not found
Alright, good to know. Works now! Thanks for the help :PES_Ok:
6 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/13/2024 in #sapphire-support
Manual Scheduled Task not found
RememberTask.ts
6 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/12/2024 in #sapphire-support
Manual Scheduled Task Method Arg Number mismatch with documentation
Works, thank you for the effort! Hopefully the PR will be merged asap :Peepo_Cry:
5 replies
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
SIASapphire - Imagine a framework
Created by ShowCast on 9/9/2023 in #sapphire-support
i18n applyLocalizedBuilders Options
Can I find how to do that in the docs for i18next or is there a special way for the plugin implementation?
13 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/9/2023 in #sapphire-support
i18n applyLocalizedBuilders Options
Hm I use that because I don't wanna hardcore URLs and stuff like that into my .json files. Well then I have to do it, thanks anyways 😄
13 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/9/2023 in #sapphire-support
i18n applyLocalizedBuilders Options
So there is no option to supply options to the localized builder in any way?
13 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/7/2023 in #sapphire-support
i18n options are not considered
Perfect, will checkout rn
29 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/7/2023 in #sapphire-support
i18n options are not considered
Got the issue! Got some custom config options for i18next I tried while figuring the issue with the options out
i18next: {
returnObjects: true,
interpolation: {
skipOnVariables: false
}
}
i18next: {
returnObjects: true,
interpolation: {
skipOnVariables: false
}
}
These messed it up. Removed it and it is working rn
29 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/7/2023 in #sapphire-support
i18n options are not considered
I tested around.
await resolveKey(interaction, Language.buildCommandTranslationKey(CommandType.help, 'help_command'), '', {
command: '</help:946826618553401416>'
})
await resolveKey(interaction, Language.buildCommandTranslationKey(CommandType.help, 'help_command'), '', {
command: '</help:946826618553401416>'
})
Outputs the correct string. The string from resolveKey with the chatInputApplicationCommandMention seems to html escape the string. Any ideas why this occurs?
29 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/7/2023 in #sapphire-support
i18n options are not considered
Another strange behaviour:
chatInputApplicationCommandMention('help', clientContainer.env.string('HELP_COMMAND_ID'))
chatInputApplicationCommandMention('help', clientContainer.env.string('HELP_COMMAND_ID'))
returns the correct string </help:946826618553401416> If I call this within resolveKey
await resolveKey(interaction, Language.buildCommandTranslationKey(CommandType.help, 'help_command'), '', {
command: chatInputApplicationCommandMention('help', clientContainer.env.string('HELP_COMMAND_ID'))
})
await resolveKey(interaction, Language.buildCommandTranslationKey(CommandType.help, 'help_command'), '', {
command: chatInputApplicationCommandMention('help', clientContainer.env.string('HELP_COMMAND_ID'))
})
The return value is &lt;&#x2F;help:946826618553401416&gt;. Am I doing something wrong?
29 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/7/2023 in #sapphire-support
i18n options are not considered
So the third parameter is for the defaultKey and the options I want to pass is the fourth paramter did I get this right?
29 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/7/2023 in #sapphire-support
i18n options are not considered
I'm looking forward to it <:Peepo_Happy:832181382595870730>
29 replies
SIASapphire - Imagine a framework
Created by ShowCast on 9/7/2023 in #sapphire-support
i18n format issue
Ahh that was the point! Got you, thanks for the hint 😄
6 replies
SIASapphire - Imagine a framework
Created by ShowCast on 8/31/2023 in #sapphire-support
i18n not part of sapphire container
That seems to work, thank you!
5 replies