Skip to content

Commit

Permalink
presence update now working
Browse files Browse the repository at this point in the history
worked on jira ext
fixed how logs are shown
refactored some factories
added message proxy for easier extending
  • Loading branch information
Daniel Klabbers committed Dec 7, 2017
1 parent aecdf26 commit 907487e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Discodian\Parts\Part;

/**
* @property string $id
* @property string $username
* @property bool $verified
* @property null $email
Expand All @@ -34,4 +35,9 @@ public function isAdmin(): bool
{
return in_array($this->id, config('discord.admins', []));
}

public function __toString()
{
return "<@{$this->id}>";
}
}

0 comments on commit 907487e

Please sign in to comment.