def _profile(self, ctx: commands.Context,
player: str, platform: str="uplay"):
"""Get the profile for the given player.
'platform' must be one of 'uplay', 'xbox', or 'playstation', and
defaults to 'uplay'.
"""
p = await self.get_player(player, platform)
if p is None:
return
await p.check_general()
await p.check_level()
e = discord.Embed(description="Player Summary")
e.set_author(name=p.name, url=p.url)
e.set_thumbnail(url=p.icon_url)
e.add_field(name="Level", value=p.level)
e.add_field(name="XP", value=p.xp)
e.add_field(name="Platform", value=p.platform)
await self.bot.say(embed=e)
评论列表
文章目录