Kaveen Kumarasinghe 2 years ago
commit 0a0d5adc52

@ -63,9 +63,13 @@ class SearchService(discord.Cog, name="SearchService"):
description=chunk,
)
if user.avatar:
page.set_footer(text=f"Requested by {user.name}", icon_url=user.avatar.url)
page.set_footer(
text=f"Requested by {user.name}", icon_url=user.avatar.url
)
else:
page.set_footer(text=f"Requested by {user.name}", icon_url=user.default_avatar.url)
page.set_footer(
text=f"Requested by {user.name}", icon_url=user.default_avatar.url
)
pages.append(page)
return pages

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

Loading…
Cancel
Save