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}.")); }