Permissions
Instead of using Precondition Attributes, you can specify command required permissions to Discord. The commands will not show up to users without the permissions then. You can also specify if commands can be used in DM. Example:
[SlashCommand("mention-everyone", "Mentions @everyone",
DefaultGuildUserPermissions = Permissions.MentionEveryone,
Contexts = [InteractionContextType.Guild])]
public static InteractionMessageProperties MentionEveryone()
{
return new()
{
AllowedMentions = AllowedMentionsProperties.All,
Content = "@everyone",
};
}