From 2970549eb0db34ede0be9df0877e5114f4ba76c8 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Mon, 3 Jun 2024 02:21:21 +0100 Subject: [PATCH] fix: rename add command --- src/commands/minecraft.rs | 4 ++-- src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/minecraft.rs b/src/commands/minecraft.rs index c346009..b4d08f1 100644 --- a/src/commands/minecraft.rs +++ b/src/commands/minecraft.rs @@ -125,8 +125,8 @@ pub(crate) mod server { pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand { command - .name("add_minecraft") - .description("Enable the bot for this discord") + .name("minecraft_add") + .description("Add a minecraft server") .create_option(|option| { option .name("server_id") diff --git a/src/main.rs b/src/main.rs index 619a750..e4613e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -84,7 +84,7 @@ impl EventHandler for Handler { "link_minecraft" => commands::minecraft::user::add::run(&command, &ctx).await, // admin commands "add" => commands::add_server::run(&command, &ctx).await, - "add_minecraft" => commands::minecraft::server::add::run(&command, &ctx).await, + "minecraft_add" => commands::minecraft::server::add::run(&command, &ctx).await, _ => "not implemented :(".to_string(), };