fix: rename add command
This commit is contained in:
parent
d549627714
commit
2970549eb0
2 changed files with 3 additions and 3 deletions
|
@ -125,8 +125,8 @@ pub(crate) mod server {
|
||||||
|
|
||||||
pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand {
|
pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand {
|
||||||
command
|
command
|
||||||
.name("add_minecraft")
|
.name("minecraft_add")
|
||||||
.description("Enable the bot for this discord")
|
.description("Add a minecraft server")
|
||||||
.create_option(|option| {
|
.create_option(|option| {
|
||||||
option
|
option
|
||||||
.name("server_id")
|
.name("server_id")
|
||||||
|
|
|
@ -84,7 +84,7 @@ impl EventHandler for Handler {
|
||||||
"link_minecraft" => commands::minecraft::user::add::run(&command, &ctx).await,
|
"link_minecraft" => commands::minecraft::user::add::run(&command, &ctx).await,
|
||||||
// admin commands
|
// admin commands
|
||||||
"add" => commands::add_server::run(&command, &ctx).await,
|
"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(),
|
_ => "not implemented :(".to_string(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue