mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Use f-strings in more places that were missed.
This commit is contained in:
@ -76,7 +76,7 @@ class WidgetChannel:
|
||||
return self.name
|
||||
|
||||
def __repr__(self):
|
||||
return '<WidgetChannel id={0.id} name={0.name!r} position={0.position!r}>'.format(self)
|
||||
return f'<WidgetChannel id={self.id} name={self.name!r} position={self.position!r}>'
|
||||
|
||||
@property
|
||||
def mention(self):
|
||||
@ -230,7 +230,7 @@ class Widget:
|
||||
return self.id == other.id
|
||||
|
||||
def __repr__(self):
|
||||
return '<Widget id={0.id} name={0.name!r} invite_url={0.invite_url!r}>'.format(self)
|
||||
return f'<Widget id={self.id} name={self.name!r} invite_url={self.invite_url!r}>'
|
||||
|
||||
@property
|
||||
def created_at(self):
|
||||
|
Reference in New Issue
Block a user