Skip to content

Commit b742c09

Browse files
committed
Fix variable naming in e14_slash_commands example
1 parent 6c4072e commit b742c09

File tree

1 file changed

+2
-2
lines changed
  • examples/e14_slash_commands/src

1 file changed

+2
-2
lines changed

examples/e14_slash_commands/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ impl EventHandler for Handler {
6161

6262
println!("I now have the following guild slash commands: {commands:#?}");
6363

64-
let guild_command =
64+
let global_command =
6565
Command::create_global_command(&ctx.http, commands::wonderful_command::register())
6666
.await;
6767

68-
println!("I created the following global slash command: {guild_command:#?}");
68+
println!("I created the following global slash command: {global_command:#?}");
6969
}
7070
}
7171

0 commit comments

Comments
 (0)