Don't hide commands when missing permissions

This commit is contained in:
oupson1er@gmail.com 2021-03-18 23:09:08 +01:00
parent 25bc62dd29
commit f0b3485060
1 changed files with 2 additions and 2 deletions

View File

@ -350,9 +350,9 @@ If you want more information about a specific command, just pass the command as
// On another note, you can set up the help-menu-filter-behaviour. // On another note, you can set up the help-menu-filter-behaviour.
// Here are all possible settings shown on all possible options. // Here are all possible settings shown on all possible options.
// First case is if a user lacks permissions for a command, we can hide the command. // First case is if a user lacks permissions for a command, we can hide the command.
#[lacking_permissions = "Hide"] //#[lacking_permissions = "Hide"]
// If the user is nothing but lacking a certain role, we just display it hence our variant is `Nothing`. // If the user is nothing but lacking a certain role, we just display it hence our variant is `Nothing`.
#[lacking_role = "Nothing"] //#[lacking_role = "Nothing"]
// The last `enum`-variant is `Strike`, which ~~strikes~~ a command. // The last `enum`-variant is `Strike`, which ~~strikes~~ a command.
#[wrong_channel = "Strike"] #[wrong_channel = "Strike"]
// Serenity will automatically analyse and generate a hint/tip explaining the possible // Serenity will automatically analyse and generate a hint/tip explaining the possible