Bladeren bron

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

master
NGnius (Graham) 3 jaren geleden
bovenliggende
commit
b76133ee7c
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. +1
    -1
      src/command_definitions.rs

+ 1
- 1
src/command_definitions.rs Bestand weergeven

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


Laden…
Annuleren
Opslaan