Hotfix: Fix delete_on_reaction check being inverted

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2025-02-01 20:56:20 +00:00 committed by GitHub
parent 501cc32e72
commit 1625a455e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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?;
}