From 94bd1b9822eefe50f4c99e2b27a322bbb3e2e360 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 4 Apr 2021 07:17:03 -0400 Subject: [PATCH] Convert two missing places to f-strings --- discord/abc.py | 2 +- discord/invite.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/abc.py b/discord/abc.py index e0f0802ff..c3735f6c2 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -359,7 +359,7 @@ class GuildChannel: @property def mention(self): """:class:`str`: The string that allows you to mention the channel.""" - return '<#%s>' % self.id + return f'<#{self.id}>' @property def created_at(self): diff --git a/discord/invite.py b/discord/invite.py index 2543f766e..939c62938 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -78,7 +78,7 @@ class PartialInviteChannel: @property def mention(self): """:class:`str`: The string that allows you to mention the channel.""" - return '<#%s>' % self.id + return f'<#{self.id}>' @property def created_at(self):