1 2 3 4 5 6 7 8 9 10 11 12 13
use serenity::prelude::*; use serenity::model::prelude::*; use serenity::framework::standard::{ CommandResult, macros::command, }; #[command] fn ping(ctx: &mut Context, msg: &Message) -> CommandResult { let _ = msg.channel_id.say(&ctx.http, "Pong!"); Ok(()) }