Make more requested changes
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
5cec119f74
commit
6c48c021e7
1 changed files with 1 additions and 1 deletions
|
@ -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(());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue