aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-08-15 18:25:30 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2019-08-15 18:25:30 +0200
commit98633ecd4f6914365f8c51678d97415672b2359f (patch)
treedada65495fc5b41da24132ac6ea05e6896dcbcf5 /pydis_site
parentAdding position, role hierarchy comparisons to Role model; top_role to User m... (diff)
Adding missing docstring in public method
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/apps/api/models/bot/user.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pydis_site/apps/api/models/bot/user.py b/pydis_site/apps/api/models/bot/user.py
index 1c566989..8049d319 100644
--- a/pydis_site/apps/api/models/bot/user.py
+++ b/pydis_site/apps/api/models/bot/user.py
@@ -54,4 +54,5 @@ class User(ModelReprMixin, models.Model):
@property
def top_role(self) -> Role:
+ """Attribute that returns the user's top role."""
return max(self.roles.all())