fix footer text for default avatars

Kaveen Kumarasinghe 2 years ago
parent 1cfec8d373
commit 0b76f6fd6f

@ -62,7 +62,10 @@ class SearchService(discord.Cog, name="SearchService"):
title=f"Page {count}",
description=chunk,
)
page.set_footer(text=f"Requested by {user.name}", icon_url=user.avatar.url)
if user.avatar:
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)
pages.append(page)
return pages

@ -31,7 +31,7 @@ from services.environment_service import EnvService
from models.openai_model import Model
__version__ = "10.3.2"
__version__ = "10.3.3"
PID_FILE = Path("bot.pid")

Loading…
Cancel
Save