|
|
@@ -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)), |
|
|
|