made some fixes to serverinfo
This commit is contained in:
parent
41052a7c29
commit
ba3e9402b5
1 changed files with 14 additions and 8 deletions
22
info/info.py
22
info/info.py
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue