moover_rust/src/commands/moover/say.rs

17 lines
439 B
Rust
Raw Normal View History

use poise;
// use super::super::types::Data;
type Error = Box<dyn std::error::Error + Send + Sync>;
type Context<'a> = poise::Context<'a, (), Error>;
#[poise::command(
slash_command,
description_localized("en-US", "Make me say something!")
)]
pub async fn say(ctx: Context<'_>,
#[description = "What will you make me say this time? 🙃"]
message: String
) -> Result<(), Error> {
ctx.say(message).await?;
Ok(())
}