poise 0.6.2

A Discord bot framework for serenity
Documentation
1
2
3
4
5
6
7
8
use crate::{Context, Error};

#[poise::command(prefix_command, slash_command)]
pub async fn r#move(ctx: Context<'_>, r#loop: String, r#fn: String) -> Result<(), Error> {
    ctx.say(format!("called with loop={} and fn={}", r#loop, r#fn))
        .await?;
    Ok(())
}