diff --git a/src/Entities/User.php b/src/Entities/User.php index 546abe6..8ebc189 100644 --- a/src/Entities/User.php +++ b/src/Entities/User.php @@ -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