diff --git a/src/Discord/Repository/Guild/BanRepository.php b/src/Discord/Repository/Guild/BanRepository.php index a7ab7bdb7..b87a6d198 100644 --- a/src/Discord/Repository/Guild/BanRepository.php +++ b/src/Discord/Repository/Guild/BanRepository.php @@ -103,7 +103,7 @@ public function ban($member, ?int $daysToDeleteMessages = null, ?string $reason * * @return ExtendedPromiseInterface */ - public function unban($member, ?string $reason = null): ExtendedPromiseInterface + public function unban($user, ?string $reason = null): ExtendedPromiseInterface { if ($user instanceof User || $user instanceof Member) { $user = $user->id; @@ -111,6 +111,6 @@ public function unban($member, ?string $reason = null): ExtendedPromiseInterface $user = $user->user_id; } - return $this->delete($member, $reason); + return $this->delete($user, $reason); } }