1 unstable release
0.1.0 | Jun 18, 2024 |
---|
#33 in #slash-command
4KB
This library provides a generic wrapper struct DefaultSlash designed to simplify the handling and parsing of command arguments in Discord bots using the poise framework. You may use it just like the following example:
#[command(slash_command)]
pub async fn search(
ctx: MyPoiseContext<'_>,
ephemeral: DefaultSlash<bool>,
) -> MyPoiseResult {
log::debug("{}", ephemeral.0);
todo!();
}
Dependencies
~15–28MB
~418K SLoC