Add User::getPresenceString
This commit is contained in:
@ -52,6 +52,17 @@ class User
|
||||
}
|
||||
}
|
||||
|
||||
public function getPresenceString()
|
||||
{
|
||||
if ($this->presence === true) {
|
||||
return "online";
|
||||
} elseif ($this->presence === false) {
|
||||
return "offline";
|
||||
} else {
|
||||
return "presence unknown";
|
||||
}
|
||||
}
|
||||
|
||||
public function getAvatarUrl(
|
||||
?int $width = null,
|
||||
?int $height = null
|
||||
|
Reference in New Issue
Block a user