Daniel Passos
SIASapphire - Imagine a framework
•Created by Sayed on 10/18/2023 in #sapphire-support
Replacing Logger
I feel your pain. I spend hours trying to replace the default Logger provided by the plugin using the
ClientOptions
:
Until I realized that is not possible because the plugin always create a new instance ignoring what we pass on ClientOptions
:
I opened an issues and will send a PR for it: https://github.com/sapphiredev/plugins/issues/49644 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 10/29/2023 in #sapphire-support
Enable slash command for bot owners only
I'm already doing that. Thanks!
5 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 5/11/2023 in #sapphire-support
Ignoring Precondition Failures
Will do!
11 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 5/11/2023 in #sapphire-support
Ignoring Precondition Failures
Thanks that is what I’m doing just wanna check if the docs miss something
11 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?
Sorry maybe I was not clean in my question.
Let's say I'm configuring my slash command using the
applyLocalizedBuilder
:
Let's say I have provide 2 differente languages in the language
folder:
And in my fetchLanguage
I'm returning a fixed locale:
If the user set the language for pt-BR
in the Discord language setting, the Slash command name and description will be in pt-BR
instead of en-US
. That means the applyLocalizedBuilder
does not relay on the fetchLanguage
for set the name and description of the Slash Command, but all messages using resolveKey
for example resolveKey(interaction, 'commands/ping:reply')
will be in en-US
because that relays on the fetchLanguage
. Is that right?15 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?
@Swiizyy I don't see it relaying on the
fetchLanguage
it seems to get the language information from the user discord language preference. If the user change the discord language the slash command name/description set using applyLocalizedBuilder
will follow that choice not what I set in the fetchLanguage
15 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?
Quick question regards the
applyLocalizedBuilder
where the language coming from? Is this based on user language on guild, guild language? I realized that is not provided by the i18n fetchLanguage
, right?15 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 5/2/2023 in #sapphire-support
Accessing container inside of a decorator
Well, that was what I did. For some reason that I can not explain I was getting an error. Seems be fixed now
5 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 4/30/2023 in #sapphire-support
Dynamic disable Slash Command based on role
I will search about it. Thanks!
13 replies
SIASapphire - Imagine a framework
•Created by Daniel Passos on 4/30/2023 in #sapphire-support
Dynamic disable Slash Command based on role
Gotcha. I was think in something like what mee6 do like disable a whole module (a group of slash commands) in the backend or dynamic set it to be available only for a specific role.
So if you are not qualified by the guild + module enable on backend + role the slash command does not even shows for you
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?
WoW! I did not know that exists. Thanks!
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
Thanks for the help, I really appreciate that. Enjoy your weekend!
51 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
Just tested and
domainOverwrite
works like a charm I see the cookie
on the front end now!51 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
Np at all. I really appreciate the job you guys are doing on the framework. Congrats!
51 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
You fast, even not give me time to do that LOL
51 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
Just wondering if we should have this information on the documentation website. WDYT?
51 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
Cool! I will test it and let you know. Thanks for the help. I really appreciate that
51 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
Nice catch! I will try the
domainOverwrite
and also create a fake domain in my /etc/hosts
51 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
Gotcha!
51 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
So in theory that only happens because I'm using
127.0.0.1
, right?51 replies