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, description=(f"{guild.description}\n\n" if guild.description else "") + created_at,
colour=await ctx.embed_colour(), colour=await ctx.embed_colour(),
) )
if "VERIFIED" in guild.features:
data.set_author( data.set_author(
name=guild.name, name=guild.name,
icon_url="https://cdn.discordapp.com/emojis/457879292152381443.png" icon_url="https://cdn.discordapp.com/emojis/457879292152381443.png"
if "VERIFIED" in guild.features )
else "https://cdn.discordapp.com/emojis/508929941610430464.png" elif "PARTNERNED" in guild.features:
if "PARTNERED" in guild.features data.set_author(
else None, name=guild.name,
icon_url="https://cdn.discordapp.com/emojis/508929941610430464.png"
)
else:
data.set_author(
name=guild.name
) )
if guild.icon: if guild.icon:
data.set_thumbnail(url=str(guild.icon_url)) data.set_thumbnail(url=str(guild.icon_url))