fix: rename add command

This commit is contained in:
silver 2024-06-03 02:21:21 +01:00
parent d549627714
commit 2970549eb0
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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(),
};