aboutsummaryrefslogtreecommitdiff
path: root/discord/widget.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-08 06:02:47 -0400
committerRapptz <[email protected]>2021-04-08 06:02:47 -0400
commit99fc9505107183faa59aad9e7753f293eba88836 (patch)
treef615ac678c5dc194fd2aa3a9a048a188b761b0d9 /discord/widget.py
parentUpdate joined command in basic_bot to use f-strings (diff)
downloaddiscord.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.py4
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):