diff --git a/CHANGELOG.md b/CHANGELOG.md index 29e8fb8..b55aa43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Fixed +- Issue where embeds would not work for users without avatars (#467). ## [2.9.0] - 2023-01-13 diff --git a/common.py b/common.py index 4a6ba8f..3111696 100644 --- a/common.py +++ b/common.py @@ -167,7 +167,7 @@ def embed_factory(ctx: commands.Context) -> discord.Embed: """Creates an embed with neutral colour and standard footer.""" embed = discord.Embed(timestamp=datetime.utcnow(), colour=colours.neutral) if ctx.author: - embed.set_footer(text=str(ctx.author), icon_url=str(ctx.author.avatar.url)) + embed.set_footer(text=str(ctx.author), icon_url=str(ctx.author.display_avatar)) return embed