diff options
Diffstat (limited to 'src/framework/standard/command.rs')
| -rw-r--r-- | src/framework/standard/command.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/framework/standard/command.rs b/src/framework/standard/command.rs index 22a82ce..e869bf5 100644 --- a/src/framework/standard/command.rs +++ b/src/framework/standard/command.rs @@ -57,6 +57,8 @@ pub struct Command { pub max_args: Option<i32>, /// Permissions required to use this command. pub required_permissions: Permissions, + /// Roles allowed to use this command. + pub allowed_roles: Vec<String>, /// Whether command should be displayed in help list or not, used by other commands. pub help_available: bool, /// Whether command can be used only privately or not. @@ -86,6 +88,7 @@ impl Command { max_args: None, owners_only: false, required_permissions: Permissions::empty(), + allowed_roles: Vec::new(), } } } |