From ba3e9402b552ee0e1405b72e0fbdae0414b637ee Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 3 Mar 2023 14:22:21 -0500 Subject: [PATCH] made some fixes to serverinfo --- info/info.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/info/info.py b/info/info.py index 563f5f7..2e67ebe 100644 --- a/info/info.py +++ b/info/info.py @@ -154,14 +154,20 @@ class Info(commands.Cog): description=(f"{guild.description}\n\n" if guild.description else "") + created_at, colour=await ctx.embed_colour(), ) - data.set_author( - name=guild.name, - icon_url="https://cdn.discordapp.com/emojis/457879292152381443.png" - if "VERIFIED" in guild.features - else "https://cdn.discordapp.com/emojis/508929941610430464.png" - if "PARTNERED" in guild.features - else None, - ) + if "VERIFIED" in guild.features: + data.set_author( + name=guild.name, + icon_url="https://cdn.discordapp.com/emojis/457879292152381443.png" + ) + elif "PARTNERNED" in guild.features: + data.set_author( + name=guild.name, + icon_url="https://cdn.discordapp.com/emojis/508929941610430464.png" + ) + else: + data.set_author( + name=guild.name + ) if guild.icon: data.set_thumbnail(url=str(guild.icon_url)) data.add_field(name=_("Members:"), value=member_msg)