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
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
SIASapphire - Imagine a framework
Created by ShowCast on 5/23/2023 in #sapphire-support
Register/delete guild commands on call
I will try that thanks for the code snippet <:PES2_LovePat:513350757333073930>
48 replies
SIASapphire - Imagine a framework
Created by ShowCast on 5/23/2023 in #sapphire-support
Register/delete guild commands on call
Nope
48 replies
SIASapphire - Imagine a framework
Created by ShowCast on 5/23/2023 in #sapphire-support
Register/delete guild commands on call
Perfect, I'm curious what your mind will print out kekGasm
48 replies
SIASapphire - Imagine a framework
Created by ShowCast on 5/23/2023 in #sapphire-support
Register/delete guild commands on call
ofc 😄
48 replies
SIASapphire - Imagine a framework
Created by ShowCast on 5/23/2023 in #sapphire-support
Register/delete guild commands on call
So yeah that would be possible aswell
48 replies
SIASapphire - Imagine a framework
Created by ShowCast on 5/23/2023 in #sapphire-support
Register/delete guild commands on call
The delete would happen in my case when premium expired or the key on the guild is unlinked with a command
48 replies