composure_macros 0.2.1

Procedural macros for Composure Discord bots: #[command], #[app], #[view] and rsx! markup
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use composure::types::User;

#[composure::command(user, name = "Inspect")]
fn inspect(target: User) -> String {
    target.username
}

/// Admin
#[composure::group(subcommands(inspect))]
struct Admin;

fn main() {}