diff options
| author | Rapptz <[email protected]> | 2021-04-08 06:02:47 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-04-08 06:02:47 -0400 |
| commit | 99fc9505107183faa59aad9e7753f293eba88836 (patch) | |
| tree | f615ac678c5dc194fd2aa3a9a048a188b761b0d9 /discord/widget.py | |
| parent | Update joined command in basic_bot to use f-strings (diff) | |
| download | discord.py-99fc9505107183faa59aad9e7753f293eba88836.tar.xz discord.py-99fc9505107183faa59aad9e7753f293eba88836.zip | |
Use f-strings in more places that were missed.
Diffstat (limited to 'discord/widget.py')
| -rw-r--r-- | discord/widget.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/widget.py b/discord/widget.py index 6a7a8adf..93a46be7 100644 --- a/discord/widget.py +++ b/discord/widget.py @@ -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): |