#Hiding Commands
1 messages · Page 1 of 1 (latest)
Check this out:
https://discordnet.dev/api/Discord.ChannelPermission.html
Can I specify specific commands with this?
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);
}
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?
iirc that's all done through Discord's internal handling.
https://discordnet.dev/guides/int_framework/permissions.html
I may also just be a pepega who doesn't understand custom attributes.