discord_openai/discord/commands/
ping.rs

1use serenity::builder::CreateApplicationCommand;
2use serenity::model::prelude::interaction::application_command::CommandDataOption;
3
4pub const PING_RESPONSE: &str = "Pong";
5
6pub fn run(_options: &[CommandDataOption]) -> String {
7    PING_RESPONSE.to_owned()
8}
9
10pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand {
11    command.name("ping").description("A ping command")
12}