allow username in getUser
This commit is contained in:
parent
b18e2ceea2
commit
2ab290c712
@ -662,7 +662,8 @@ class APnutI
|
|||||||
return $this->current_user;
|
return $this->current_user;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getUser(int $user_id, array $args = [])
|
// User ID or user name
|
||||||
|
public function getUser(int|string $user_id, array $args = [])
|
||||||
{
|
{
|
||||||
return new User($this->get('/users/' . $user_id, $args), $this);
|
return new User($this->get('/users/' . $user_id, $args), $this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user