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/integrations.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/integrations.py')
| -rw-r--r-- | discord/integrations.py | 4 |
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') |