From 87e836619f8e8d56b8c5499a66cc2732bc94c736 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Mon, 3 Jun 2024 02:06:35 +0100 Subject: [PATCH] fix: re-order commands --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 208f352..67d54f2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -78,11 +78,13 @@ impl EventHandler for Handler { //println!("Received command interaction: {:#?}", command); let content = match command.data.name.as_str() { - "add" => commands::add_server::run(&command, &ctx).await, + // user commands "link_wolves" => commands::link_email::link::run(&command, &ctx).await, "verify" => commands::link_email::verify::run(&command, &ctx).await, - "add_minecraft" => commands::add_minecraft::server::run(&command, &ctx).await, "link_minecraft" => commands::add_minecraft::user::run(&command, &ctx).await, + // admin commands + "add" => commands::add_server::run(&command, &ctx).await, + "add_minecraft" => commands::add_minecraft::server::run(&command, &ctx).await, _ => "not implemented :(".to_string(), };