diff options
Diffstat (limited to 'discord/role.py')
| -rw-r--r-- | discord/role.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/role.py b/discord/role.py index 7ea93a98..d517c8e8 100644 --- a/discord/role.py +++ b/discord/role.py @@ -92,6 +92,9 @@ class Role(Hashable): def __str__(self): return self.name + def __repr__(self): + return '<Role id={0.id} name={0.name!r}>'.format(self) + def __lt__(self, other): if not isinstance(other, Role) or not isinstance(self, Role): return NotImplemented |