diff options
Diffstat (limited to 'discord/object.py')
| -rw-r--r-- | discord/object.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/discord/object.py b/discord/object.py index d349caa3..a2ceeddb 100644 --- a/discord/object.py +++ b/discord/object.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ The MIT License (MIT) @@ -65,12 +63,12 @@ class Object(Hashable): try: id = int(id) except ValueError: - raise TypeError('id parameter must be convertable to int not {0.__class__!r}'.format(id)) from None + raise TypeError(f'id parameter must be convertable to int not {id.__class__!r}') from None else: self.id = id def __repr__(self): - return '<Object id=%r>' % self.id + return f'<Object id={self.id!r}>' @property def created_at(self): |