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/copypasta.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/copypasta.rs') diff --git a/src/commands/copypasta.rs b/src/commands/copypasta.rs index ec3f3c6..670a5df 100644 --- a/src/commands/copypasta.rs +++ b/src/commands/copypasta.rs @@ -18,7 +18,7 @@ pub async fn run(options: &[CommandDataOption], channel_id: ChannelId, http: &Ar .expect(err_msg); if let CommandDataOptionValue::String(copypasta) = option { - let replies = utils::get_copypasta(copypasta).await; + let replies = utils::get_copypasta(copypasta); if replies.len() > 1 { for reply in replies { -- cgit v1.2.3