made some fixes to serverinfo

This commit is contained in:
Seaswimmer 2023-03-03 14:22:21 -05:00
parent 41052a7c29
commit ba3e9402b5

View file

@ -154,13 +154,19 @@ class Info(commands.Cog):
description=(f"{guild.description}\n\n" if guild.description else "") + created_at,
colour=await ctx.embed_colour(),
)
if "VERIFIED" in guild.features:
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,
)
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))