"""Ping slash command.""" import discord from discord.app_commands import Command from discord.ext import commands async def ping(interaction: discord.Interaction) -> None: """Check the bot's latency.""" latency = round(interaction.client.latency * 1000) await interaction.response.send_message( f"Pong! Latency: {latency}ms", ephemeral=True, ) ping.__signature__ = None # type: ignore async def info(interaction: discord.Interaction) -> None: """Show bot information.""" await interaction.response.send_message( f"**{interaction.client.user.name}**\n" f"ID: {interaction.client.user.id}\n" f"Bot! (ping: {round(interaction.client.latency * 1000)}ms)", ephemeral=True, ) info.__signature__ = None # type: ignore