def server(self, ctx):
"""
Provides information on the server
"""
with ctx.channel.typing():
embed = discord.Embed(title="ID: 58934178071780", colour=discord.Colour.gold(),
timestamp=datetime.datetime.now())
embed.set_thumbnail(
url=ctx.guild.icon_url)
embed.set_author(name=ctx.guild.name)
embed.set_footer(text="About Server")
embed.add_field(name="Members", value=str(len(ctx.guild.members)))
embed.add_field(name="Roles", value=str(len(ctx.guild.roles) - 1))
embed.add_field(name="Channels", value=str(len(ctx.guild.channels)))
embed.add_field(name="AFK Channel", value=ctx.guild.afk_channel)
embed.add_field(name="AFK Timeout", value=str(ctx.guild.afk_timeout / 60))
embed.add_field(name="Owner", value=ctx.guild.owner)
embed.add_field(name="Creation Date", value=ctx.guild.created_at)
embed.add_field(name="Region", value=ctx.guild.region)
embed.add_field(name="Verification Level", value=ctx.guild.verification_level)
embed.set_footer(text="About Server")
await ctx.send(embed=embed)
评论列表
文章目录