forked from Skynet/discord-bot
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 {
|
||||
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")
|
||||
|
|
|
@ -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(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue