diff options
| author | 2020-12-21 19:39:56 +0000 | |
|---|---|---|
| committer | 2020-12-21 19:39:56 +0000 | |
| commit | 59a605290795c0563311993fb16d992972104025 (patch) | |
| tree | d1b392efe12ccaa053e3f6253f12a471d94da253 /backend/authentication/user.py | |
| parent | Remove validator import (diff) | |
| parent | Merge pull request #39 from python-discord/discord-webhook (diff) | |
Merge branch 'main' into big-int-fix
Diffstat (limited to '')
| -rw-r--r-- | backend/authentication/user.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/authentication/user.py b/backend/authentication/user.py index 722c348..f40c68c 100644 --- a/backend/authentication/user.py +++ b/backend/authentication/user.py @@ -19,3 +19,7 @@ class User(BaseUser): def display_name(self) -> str: """Return username and discriminator as display name.""" return f"{self.payload['username']}#{self.payload['discriminator']}" + + @property + def discord_mention(self) -> str: + return f"<@{self.payload['id']}>" |