How do I make commands only visible to certain users?

Question's in the title. How do I make (interaction) commands visible to only certain users?
Solution:
use #setDefaultMemberPermissions maybe?
Jump to solution
4 Replies
UndiedGFX
UndiedGFX3w ago
Sapphire Framework
What are preconditions and how do they work? | Sapphire
Preconditions are classes that will determine whether or not a command should be ran according to certain conditions.
Upsided
Upsided3w ago
Is that not for if a command can be run, and not for visibility of that command?
Solution
UndiedGFX
UndiedGFX3w ago
use #setDefaultMemberPermissions maybe?
Upsided
Upsided3w ago
that might be the one, thanks!