feat: added a delete server command

This commit is contained in:
silver 2024-06-03 03:56:45 +01:00
parent 33cebe7782
commit 9481358068
2 changed files with 84 additions and 3 deletions

View file

@ -62,6 +62,7 @@ impl EventHandler for Handler {
.create_application_command(|command| commands::link_email::verify::register(command))
.create_application_command(|command| commands::minecraft::server::add::register(command))
.create_application_command(|command| commands::minecraft::server::list::register(command))
.create_application_command(|command| commands::minecraft::server::delete::register(command))
.create_application_command(|command| commands::minecraft::user::add::register(command))
})
.await
@ -87,6 +88,7 @@ impl EventHandler for Handler {
"add" => commands::add_server::run(&command, &ctx).await,
"minecraft_add" => commands::minecraft::server::add::run(&command, &ctx).await,
"minecraft_list" => commands::minecraft::server::list::run(&command, &ctx).await,
"minecraft_delete" => commands::minecraft::server::delete::run(&command, &ctx).await,
_ => "not implemented :(".to_string(),
};