aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/create_command.rs
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2018-10-15 20:47:54 +0200
committerGitHub <[email protected]>2018-10-15 20:47:54 +0200
commitc5285ae1824dd26adbbd2f0b876eed607f64baa1 (patch)
treef8cda5d383274d5b238291eef2c8faea0854a2a9 /src/framework/standard/create_command.rs
parentAdd configuration for the write lock the cache is using to update (#415) (diff)
downloadserenity-c5285ae1824dd26adbbd2f0b876eed607f64baa1.tar.xz
serenity-c5285ae1824dd26adbbd2f0b876eed607f64baa1.zip
Add Option to disable bypassing Checks for Owners (#419)
Diffstat (limited to 'src/framework/standard/create_command.rs')
-rw-r--r--src/framework/standard/create_command.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/framework/standard/create_command.rs b/src/framework/standard/create_command.rs
index 200f9f7..3976f6d 100644
--- a/src/framework/standard/create_command.rs
+++ b/src/framework/standard/create_command.rs
@@ -168,6 +168,14 @@ impl CreateCommand {
self
}
+ /// Whether owners shall bypass buckets, missing permissions,
+ /// wrong channels, missing roles, and checks.
+ pub fn owner_privileges(mut self, owner_privileges: bool) -> Self {
+ self.0.owner_privileges = owner_privileges;
+
+ self
+ }
+
/// Whether command should be displayed in help list or not, used by other commands.
pub fn help_available(mut self, help_available: bool) -> Self {
self.0.help_available = help_available;