From e68dcf160880ce4c55e6edf80644851acc457af2 Mon Sep 17 00:00:00 2001 From: Alexander Maassen Date: Sun, 3 Mar 2024 11:19:06 +0100 Subject: [PATCH] Update src/Discord/Parts/Guild/Guild.php Co-authored-by: SQKo <87897282+SQKo@users.noreply.github.com> --- src/Discord/Parts/Guild/Guild.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord/Parts/Guild/Guild.php b/src/Discord/Parts/Guild/Guild.php index ff8f2c6e7..8aab68896 100644 --- a/src/Discord/Parts/Guild/Guild.php +++ b/src/Discord/Parts/Guild/Guild.php @@ -1283,7 +1283,7 @@ public function beginPrune(array $options = [], ?string $reason = null): Extende $options = $resolver->resolve($options); $botperms = $this->getBotPermissions(); - if ($botperms && (! $botperms->kick_members || ! $botperms->manage_guild)) { + if ($botperms && ! ($botperms->kick_members && $botperms->manage_guild)) { return reject(new NoPermissionsException("You do not have permission to prune members in the guild {$this->id}.")); }