Example command for use inside a discord bot cog.

async def profile(self, ctx, tag):
        '''Example command for use inside a discord bot cog.'''
        if not self.check_valid_tag(tag):
            return await ctx.send('Invalid tag!')

        profile = await self.cr.get_profile(tag)

        em = discord.Embed(color=0x00FFFFF)
        em.set_author(name=str(profile), icon_url=profile.clan_badge_url)
        em.set_thumbnail(url=profile.arena.badge_url)

        # Example of adding data. (Bad)
        for attr in self.cdir(profile):
            value = getattr(profile, attr) 
            if not callable(value):
                em.add_field(
                    name=attr.replace('_').title(), 
                    value=str(value)
                    )

        await ctx.send(embed=em)