Is there a way to hide command if the user doesn't have the precondition ?
Solution:Jump to solution
That's correct. Server settings and setting it at register level are configuring it on the Discord API side which means a command can be hidden from users because at that point it's simply to sent to them from the API. Preconditions however are runtime checks and essentially just glorified if checks.
11 Replies
And this is the procondition
nope
only in server settings i think
since it's slash command
Solution
That's correct. Server settings and setting it at register level are configuring it on the Discord API side which means a command can be hidden from users because at that point it's simply to sent to them from the API. Preconditions however are runtime checks and essentially just glorified if checks.
So there is no tips to hide owner only command
you can register these commands only to your owner guild
and they'll be only there
What Camdzic said or make owner only commands message commands
how ?
Sapphire Framework
Registering Chat Input Commands | Sapphire
To register a Chat Input Command (also known as a Slash Command) with Discord, you need to acquire an application
i think this is what you're looking for
ty