import discord
import app_util



class Ping(app_util.Cog):
    def __init__(self, bot: app_util.Bot):
        self.bot = bot

    @app_util.Cog.command(
        command=app_util.SlashCommand(
            name='ping', description='shows avg ping of client'
        ),
        guild_id=877399405056102431
    )
    async def command(self, ctx: app_util.Context):
        await ctx.send_response(embed=discord.Embed(title=f'{self.bot.latency * 1000:.2f}ms'))


def setup(bot: app_util.Bot):
    bot.add_application_cog(Ping(bot))

[((11, 16, 13, 9), 'app_util.SlashCommand', 'app_util.SlashCommand', (), '', False, 'import app_util\n'), ((17, 38, 17, 93), 'discord.Embed', 'discord.Embed', (), '', False, 'import discord\n')]