© 2026 Hedgehog Software, LLC
@ApplyOptions<Command.Options>({ description: 'ping pong' }) registry.registerChatInputCommand({ name: this.name, description: this.description }); public override async chatInputRun(interaction: Command.ChatInputCommandInteraction) { const msg = await interaction.reply({ content: 'Ping?', fetchReply: true }); const content = `Pong! Bot Latency ${Math.round(this.container.client.ws.ping)}ms. API Latency ${ msg.createdTimestamp - interaction.createdTimestamp }ms.`; return await interaction.editReply({ content: content }); }
Join the Discord to ask follow-up questions and connect with the community
Sapphire is a next-gen object-oriented Discord.js bot framework.
2,286 Members