mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
Propose more info on simple serverinfo (#4121)
* Propose more info on simple serverinfo * Fixed black + serverinfo * Fix black (Sorry) * Merge jack's suggestions Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> * Change separator 👍 Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> * Black * Update general.py Co-authored-by: Ubuntu <ubuntu@vps-35e65bf5.vps.ovh.net> Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -267,7 +267,13 @@ class General(commands.Cog):
|
||||
data.add_field(name=_("Voice Channels"), value=voice_channels)
|
||||
data.add_field(name=_("Roles"), value=humanize_number(len(guild.roles)))
|
||||
data.add_field(name=_("Owner"), value=str(guild.owner))
|
||||
data.set_footer(text=_("Server ID: ") + str(guild.id))
|
||||
data.set_footer(
|
||||
text=_("Server ID: ")
|
||||
+ str(guild.id)
|
||||
+ _(" • Use {command} for more info on the server.").format(
|
||||
command=f"{ctx.clean_prefix}serverinfo 1"
|
||||
)
|
||||
)
|
||||
if guild.icon_url:
|
||||
data.set_author(name=guild.name, url=guild.icon_url)
|
||||
data.set_thumbnail(url=guild.icon_url)
|
||||
|
||||
Reference in New Issue
Block a user