Skip to content

Commit

Permalink
Merge pull request #852 from SQKo/patch-85
Browse files Browse the repository at this point in the history
Fix variable name mistaken when resolving PR conflict
  • Loading branch information
SQKo authored Jul 3, 2022
2 parents bd8895c + 6f6a530 commit 200202d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Discord/Repository/Guild/BanRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ 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;
} elseif ($user instanceof Ban) {
$user = $user->user_id;
}

return $this->delete($member, $reason);
return $this->delete($user, $reason);
}
}

0 comments on commit 200202d

Please sign in to comment.