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,14 +154,20 @@ 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(),
) )
data.set_author( if "VERIFIED" in guild.features:
name=guild.name, data.set_author(
icon_url="https://cdn.discordapp.com/emojis/457879292152381443.png" name=guild.name,
if "VERIFIED" in guild.features icon_url="https://cdn.discordapp.com/emojis/457879292152381443.png"
else "https://cdn.discordapp.com/emojis/508929941610430464.png" )
if "PARTNERED" in guild.features elif "PARTNERNED" in guild.features:
else None, 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: if guild.icon:
data.set_thumbnail(url=str(guild.icon_url)) data.set_thumbnail(url=str(guild.icon_url))
data.add_field(name=_("Members:"), value=member_msg) data.add_field(name=_("Members:"), value=member_msg)