aboutsummaryrefslogtreecommitdiff
path: root/src/commands/meme/delete.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/meme/delete.rs')
-rw-r--r--src/commands/meme/delete.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/meme/delete.rs b/src/commands/meme/delete.rs
index c06e9d0..6af1b6b 100644
--- a/src/commands/meme/delete.rs
+++ b/src/commands/meme/delete.rs
@@ -27,9 +27,9 @@ use crate::{
pub async fn delmeme(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult {
let title = args.single_quoted::<String>()?;
- let mut conn = connection()?;
+ let mut conn = connection().await?;
- match delete_meme(&mut conn, &title, msg.author.id.get()) {
+ match delete_meme(&mut conn, &title, msg.author.id.get()).await {
Ok(_) => {
msg.react(ctx, ReactionType::Unicode("💀".to_owned())).await?;
Ok(())