Skip to content

Commit

Permalink
Add missing default reply
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Apr 30, 2024
1 parent 75ecfe0 commit 2f11a82
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/commands/game_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,21 @@ pub async fn game_support(ctx: Context<'_>,
}
}
},
None => {}
None => {
if let Context::Prefix(prefix) = ctx {
match prefix.msg.clone().referenced_message {
Some(parent) => {
parent.reply(&ctx, message).await?;
prefix.msg.delete(ctx).await?;
},
None => {
ctx.reply(message).await?;
}
}
} else {
ctx.reply(message).await?;
}
}
}

Ok(())
Expand Down

0 comments on commit 2f11a82

Please sign in to comment.