From 445822efad6682edbe0b1e27448b997fae9564c5 Mon Sep 17 00:00:00 2001 From: Leah Amelia Chen Date: Sun, 9 Jul 2023 18:38:31 -0600 Subject: Refactors + add pin board module (#32) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor according to the rules of the cone school of rustâ„¢ * Add pin board module * cargo fmt * More cleanups + appease clippy --- src/commands/ask.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands/ask.rs') diff --git a/src/commands/ask.rs b/src/commands/ask.rs index 6188f43..b0b24f3 100644 --- a/src/commands/ask.rs +++ b/src/commands/ask.rs @@ -3,8 +3,8 @@ use serenity::builder::CreateApplicationCommand; use serenity::model::prelude::command::CommandOptionType; use serenity::model::prelude::interaction::application_command::CommandDataOption; -pub async fn run(_: &[CommandDataOption]) -> String { - utils::get_random_response().await +pub fn run(_: &[CommandDataOption]) -> String { + utils::get_random_response() } pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand { -- cgit v1.2.3