From 99fc9505107183faa59aad9e7753f293eba88836 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 8 Apr 2021 06:02:47 -0400 Subject: Use f-strings in more places that were missed. --- discord/webhook.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'discord/webhook.py') diff --git a/discord/webhook.py b/discord/webhook.py index dd646b33..43d56319 100644 --- a/discord/webhook.py +++ b/discord/webhook.py @@ -106,7 +106,7 @@ class PartialWebhookGuild(Hashable): @property def icon_url(self): """:class:`Asset`: Returns the guild's icon asset.""" - return self.icon_url_as() + return self.icon_url_as() def is_icon_animated(self): """:class:`bool`: Returns True if the guild has an animated icon.""" @@ -724,13 +724,13 @@ class Webhook(Hashable): source_channel = data.get('source_channel') if source_channel: source_channel = PartialWebhookChannel(data=source_channel) - + self.source_channel = source_channel source_guild = data.get('source_guild') if source_guild: source_guild = PartialWebhookGuild(data=source_guild, state=state) - + self.source_guild = source_guild def __repr__(self): @@ -904,7 +904,7 @@ class Webhook(Hashable): if format not in ('png', 'jpg', 'jpeg'): raise InvalidArgument("format must be one of 'png', 'jpg', or 'jpeg'.") - url = '/avatars/{0.id}/{0.avatar}.{1}?size={2}'.format(self, format, size) + url = f'/avatars/{self.id}/{self.avatar}.{format}?size={size}' return Asset(self._state, url) def delete(self, *, reason=None): -- cgit v1.2.3