aboutsummaryrefslogtreecommitdiff
path: root/discord/integrations.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/integrations.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/integrations.py')
-rw-r--r--discord/integrations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/integrations.py b/discord/integrations.py
index 6784f3f9..34458adc 100644
--- a/discord/integrations.py
+++ b/discord/integrations.py
@@ -53,7 +53,7 @@ class IntegrationAccount:
self.name = kwargs.pop('name')
def __repr__(self):
- return '<IntegrationAccount id={0.id} name={0.name!r}>'.format(self)
+ return f'<IntegrationAccount id={self.id} name={self.name!r}>'
class Integration:
"""Represents a guild integration.
@@ -101,7 +101,7 @@ class Integration:
self._from_data(data)
def __repr__(self):
- return '<Integration id={0.id} name={0.name!r} type={0.type!r}>'.format(self)
+ return f'<Integration id={self.id} name={self.name!r} type={self.type!r}>'
def _from_data(self, integ):
self.id = _get_as_snowflake(integ, 'id')