From 19c65bd27f27192cc9a8a04c1d38ec08b62652c8 Mon Sep 17 00:00:00 2001 From: Lakelezz <12222135+Lakelezz@users.noreply.github.com> Date: Fri, 31 Aug 2018 19:24:34 +0200 Subject: Fix `has_correct_permissions` when no guild is available (#376) --- examples/05_command_framework/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/05_command_framework/src') 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)) ), ); -- cgit v1.2.3