aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-08 06:02:47 -0400
committerRapptz <[email protected]>2021-04-08 06:02:47 -0400
commit99fc9505107183faa59aad9e7753f293eba88836 (patch)
treef615ac678c5dc194fd2aa3a9a048a188b761b0d9 /discord/webhook.py
parentUpdate joined command in basic_bot to use f-strings (diff)
downloaddiscord.py-99fc9505107183faa59aad9e7753f293eba88836.tar.xz
discord.py-99fc9505107183faa59aad9e7753f293eba88836.zip
Use f-strings in more places that were missed.
Diffstat (limited to 'discord/webhook.py')
-rw-r--r--discord/webhook.py8
1 files changed, 4 insertions, 4 deletions
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):