Skip to content

Commit a1f2441

Browse files
authored
Fix variable naming in examples/e14_slash_commands example (#3443)
Rename `guild_command` to `global_command` to match the global command creation call.
1 parent 6c4072e commit a1f2441

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)