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/activity.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/activity.py')
| -rw-r--r-- | discord/activity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/activity.py b/discord/activity.py index 7c46a660..f9128817 100644 --- a/discord/activity.py +++ b/discord/activity.py @@ -584,7 +584,7 @@ class Spotify: return 'Spotify' def __repr__(self): - return '<Spotify title={0.title!r} artist={0.artist!r} track_id={0.track_id!r}>'.format(self) + return f'<Spotify title={self.title!r} artist={self.artist!r} track_id={self.track_id!r}>' @property def title(self): @@ -738,7 +738,7 @@ class CustomActivity(BaseActivity): return str(self.name) def __repr__(self): - return '<CustomActivity name={0.name!r} emoji={0.emoji!r}>'.format(self) + return f'<CustomActivity name={self.name!r} emoji={self.emoji!r}>' def create_activity(data): |