aboutsummaryrefslogtreecommitdiff
path: root/examples/05_command_framework
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2018-08-31 19:24:34 +0200
committerGitHub <[email protected]>2018-08-31 19:24:34 +0200
commit19c65bd27f27192cc9a8a04c1d38ec08b62652c8 (patch)
tree5c3e449ddc5c6165a5499cd53b01ecad1e4517a0 /examples/05_command_framework
parentRefactor Help (#375) (diff)
downloadserenity-19c65bd27f27192cc9a8a04c1d38ec08b62652c8.tar.xz
serenity-19c65bd27f27192cc9a8a04c1d38ec08b62652c8.zip
Fix `has_correct_permissions` when no guild is available (#376)
Diffstat (limited to 'examples/05_command_framework')
-rw-r--r--examples/05_command_framework/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/05_command_framework/src/main.rs b/examples/05_command_framework/src/main.rs
index a5494f0..483d143 100644
--- a/examples/05_command_framework/src/main.rs
+++ b/examples/05_command_framework/src/main.rs
@@ -208,8 +208,8 @@ fn main() {
// User needs to pass the test for the command to execute.
.check(admin_check)
.command("am i admin", |c| c
- .cmd(am_i_admin))
- .guild_only(true)
+ .cmd(am_i_admin)
+ .guild_only(true))
),
);