diff options
| author | Lakelezz <[email protected]> | 2018-08-31 19:24:34 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-08-31 19:24:34 +0200 |
| commit | 19c65bd27f27192cc9a8a04c1d38ec08b62652c8 (patch) | |
| tree | 5c3e449ddc5c6165a5499cd53b01ecad1e4517a0 /examples/05_command_framework | |
| parent | Refactor Help (#375) (diff) | |
| download | serenity-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.rs | 4 |
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)) ), ); |