Use f-strings in more places that were missed.

This commit is contained in:
Rapptz
2021-04-08 06:02:47 -04:00
parent c3e0b6e123
commit 99fc950510
34 changed files with 220 additions and 143 deletions

View File

@ -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')