Skip to content

Commit

Permalink
Hotfix: Fix delete_on_reaction check being inverted
Browse files Browse the repository at this point in the history
Signed-off-by: TheKodeToad <[email protected]>
  • Loading branch information
TheKodeToad authored Feb 1, 2025
1 parent 501cc32 commit 1625a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/event/delete_on_reaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub async fn handle(ctx: &Context, reaction: &Reaction) -> Result<()> {
if let Some(MessageInteractionMetadata::Command(metadata)) =
message.interaction_metadata.as_deref()
{
if metadata.user != user && reaction.emoji.unicode_eq("❌") {
if metadata.user == user && reaction.emoji.unicode_eq("❌") {
trace!("Deleting our own message at the request of {}", user.tag());
message.delete(ctx).await?;
}
Expand Down

0 comments on commit 1625a45

Please sign in to comment.