Skip to content

Commit

Permalink
[EventPoster] Use display_avatar where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID committed Dec 3, 2023
1 parent 0687e0a commit 0a63d96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eventposter/event_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ async def make_event_embed(self, ctx: Optional[commands.Context] = None) -> disc
hoster = ctx.guild.get_member(self.hoster)
em = discord.Embed()
em.set_author(
name=_("{hoster} is hosting").format(hoster=hoster), icon_url=hoster.avatar.url
name=_("{hoster} is hosting").format(hoster=hoster), icon_url=hoster.display_avatar
)
try:
prefixes = await self.bot.get_valid_prefixes(ctx.guild)
Expand Down Expand Up @@ -637,7 +637,7 @@ async def make_event_embed(self, ctx: Optional[commands.Context] = None) -> disc
approver = ctx.guild.get_member(self.approver)
em.set_footer(
text=_("Approved by {approver}").format(approver=approver),
icon_url=approver.avatar.url,
icon_url=approver.display_avatar,
)
start = await self.start_time()
if start is not None:
Expand Down

0 comments on commit 0a63d96

Please sign in to comment.