Hotfix: Fix delete_on_reaction check being inverted
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
501cc32e72
commit
1625a455e0
1 changed files with 1 additions and 1 deletions
|
@ -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?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue