Add User::getPresenceString
This commit is contained in:
parent
848c1ae91e
commit
7f0f8ac95b
@ -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(
|
public function getAvatarUrl(
|
||||||
?int $width = null,
|
?int $width = null,
|
||||||
?int $height = null
|
?int $height = null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user