Fix avatar url retrieval for default avatar

Kaveen Kumarasinghe 2 years ago
parent 3390572de6
commit ef6406ab2e

@ -28,7 +28,7 @@ def build_translation_embed(
)
embed.set_footer(
text=f"Requested by {requestor.name}#{requestor.discriminator}",
icon_url=requestor.avatar.url,
icon_url=requestor.avatar.url if requestor.avatar else requestor.default_avatar.url,
)
return embed

Loading…
Cancel
Save