Replace function-like group with an attribute macro
This commit is contained in:
parent
19bf892200
commit
6f9790bda5
|
@ -32,11 +32,9 @@ impl EventHandler for Handler {
|
|||
}
|
||||
}
|
||||
|
||||
group!({
|
||||
name: "general",
|
||||
options: {},
|
||||
commands: [init, ping, halt, list_srv, host, ship, headpat, uwu, gayculator, waffle, sausage, help, compare_bot, what, owo, info]
|
||||
});
|
||||
#[group]
|
||||
#[commands(init, ping, halt, list_srv, host, ship, headpat, uwu, gayculator, waffle, sausage, help, compare_bot, what, owo, info)]
|
||||
struct General;
|
||||
|
||||
fn main() {
|
||||
let mut client = Client::new(&env::var("DISCORD_TOKEN").expect("Invalid token"), Handler)
|
||||
|
|
Loading…
Reference in New Issue