Daniel Passos
SIASapphire - Imagine a framework
•Created by Daniel Passos on 12/21/2023 in #sapphire-support
error TS6053: File '@sapphire/ts-config' not found.
4 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 12/7/2023 in #sapphire-support
Is that possible to have multiple routes in the same route class?
Something like:
4 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 12/5/2023 in #sapphire-support
Translate runIn error message
Since
runIn
pre condition do not return the identifier of precondition that failed, is there a way to translate the message of the error or should I just don't use the runIn: CommandOptionsRunTypeEnum.GuildAny
and only use preconditions: ['GuildOnly']
?4 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 11/11/2023 in #sapphire-support
i18n based on the user locale
Is that possible to translate a message based on the user locale outside of the interaction command using
resolveKey
or something else??4 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 10/29/2023 in #sapphire-support
Enable slash command for bot owners only
Is that possible for register a slash command to be visible only for a specific user like the bot owner?
5 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 5/11/2023 in #sapphire-support
Ignoring Precondition Failures
I'm working on a precondition that I wanna ignore on the
ChatInputCommandDenied
listener. The documentation suggests to a add information on the context
in the Precondition
and check for it in ChatInputCommandDenied
.
That works but I realized that the interaction response will be:
The application did not respondIs that expected or did I miss something?
11 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 5/2/2023 in #sapphire-support
Accessing container inside of a decorator
Is that possible to have access to the
container
inside of a decorator. I'm trying to use it in a createFunctionPrecondition
but I'm getting:
TypeError: Cannot read properties of undefined (reading 'container')
5 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 4/30/2023 in #sapphire-support
Dynamic disable Slash Command based on role
Is that possible dynamic enable a slash command for a specify role in a specifically guild?
13 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 4/29/2023 in #sapphire-support
How to get the resolve a key without a target?
👋 Is there a way to access the locale strings using the i18next plugin passing the language instead of delegate it to the
fetchLanguage
?
I'd love to have the nameLocalizations
and descriptionLocalizations
on my slash commands coming from the i18n json files. That will make it easy to collaborative translation.
Something like:
Maybe something like resolKey('language', 'ping:success')
15 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 4/29/2023 in #sapphire-support
No auth data in the request after exchange the Discord code
👋 I'm fowling the built in Oauth2 route documentation but, every time that I fire a request after authenticate I have a
null
value in the request.auth
on the backend side.
Here is my frontend code for exchange the Discord code
and here is the Precondition
I'm using on the bot/backend side:
PS: The Discord code
was success exchange and I received the LoginData
back in the front end.51 replies