poise 0.6.2

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

#[poise::command(slash_command, prefix_command)]
pub async fn reply(ctx: Context<'_>) -> Result<(), Error> {
    ctx.reply(format!("Hello {}!", ctx.author().name)).await?;
    Ok(())
}