From 6da941da5ce81b00fa2dbff2e5c14019268ab4f8 Mon Sep 17 00:00:00 2001 From: snipe <72265661+notsniped@users.noreply.github.com> Date: Mon, 1 Apr 2024 23:26:15 +0530 Subject: [PATCH] Fix issue in `/automod` where server icon fails to display Basically update the attribute name for guild icon in order to fetch it and display it in the embed. This is what happens when you update Pycord. --- cogs/automod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/automod.py b/cogs/automod.py index bfe15ca9..dd5eb4f8 100644 --- a/cogs/automod.py +++ b/cogs/automod.py @@ -22,7 +22,7 @@ def __init__(self, bot): async def automod(self, ctx: ApplicationContext): loaded_config = automod.fetch_config(ctx.guild.id) localembed = discord.Embed(title=f"{ctx.guild.name}\'s automod configuration", description="Use the `/automod_set` command to change your server's automod configuration.", color=color) - localembed.set_thumbnail(url=ctx.guild.icon_url) + localembed.set_thumbnail(url=ctx.guild.icon) localembed.add_field(name="Swear-filter", value=loaded_config["swear_filter"]["enabled"]) localembed.add_field(name="Swear-filter Keywords Count", value=f"{int(len(loaded_config['swear_filter']['keywords']['default'])) + int(len(loaded_config['swear_filter']['keywords']['custom']))} words") localembed.set_footer(text="More automod features will come soon!")