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}", title=f"Page {count}",
description=chunk, 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) pages.append(page)
return pages return pages

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

Loading…
Cancel
Save