summaryrefslogtreecommitdiff
path: root/src/commands/random_shiggy.rs
blob: c6aa6de127c584f4bbabf478eb8a55550cbc7f44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::api::shiggy::get_random_shiggy;
use serenity::builder::CreateApplicationCommand;
use serenity::model::prelude::application_command::CommandDataOption;

pub async fn run(_: &[CommandDataOption]) -> String {
	get_random_shiggy().await
}

pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand {
	command
		.name("random_shiggy")
		.description("get a random shiggy!")
}