mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Use f-strings in more places that were missed.
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user