#Hiding Commands

1 messages · Page 1 of 1 (latest)

elder abyss
#

Is there a way I can hide slash commands with a custom attribute for those who don't meet the requirements?

cold sphinx
elder abyss
cold sphinx
#

You can do commands but not subcommands.

#

Ex:


        [DefaultMemberPermissions(GuildPermission.Administrator)]
        [SlashCommand("test", "test'er? I hardly know'er!")]
        public async Task testCommand()
        {
            await RespondAsync("This is a test", ephemeral: true);
        }
elder abyss
#

I am looking at the adding of perm overwrites on channels and I don't see a param specified for commands? Unless that's within the requestoptions

#

So what if I have a custom attribute made

#

Is there still a way I could hide the commands they don't have access to?

cold sphinx