Make more requested changes

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2024-05-07 13:43:16 +01:00 committed by GitHub
parent 5cec119f74
commit 6c48c021e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ pub async fn delete_interaction(ctx: Context<'_>, message: Message) -> Result<()
.and_then(|p| p.contains(Permissions::MANAGE_MESSAGES).then_some(true))
.is_some();
if !(interaction.user.id == ctx.author().id || can_manage) {
if interaction.user.id != ctx.author().id && !can_manage {
ctx.say("❌ You cannot delete commands run by other users")
.await?;
return Ok(());