Browse Source

Fix hello_world (why is that command even still in this?)

master
NGnius (Graham) 3 years ago
parent
commit
b76133ee7c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/command_definitions.rs

+ 1
- 1
src/command_definitions.rs View File

@@ -17,7 +17,7 @@ pub fn def_hello_world() -> (discord::ApplicationCommand, Option<String>) {
// hello-world action when someone uses the command on Discord
pub fn hello_world(interaction: &Interaction) -> InteractionResponse {
let cmd = interaction.cmd().unwrap();
InteractionResponse::ChannelMessage {
InteractionResponse::ChannelMessageWithSource {
data: Some(InteractionApplicationCommandCallbackData {
tts: false,
content: format!("Hello {}!", cmd.member.nick.unwrap_or(cmd.member.user.unwrap().username)),


Loading…
Cancel
Save