import { MessageFlags, SlashCommandBuilder } from "discord.js"; import type { Command } from "@voidy/framework"; export default { id: "ping", data: new SlashCommandBuilder() .setName("ping") .setDescription("View the websocket ping between Discord and the Bot."), execute: async (interaction, client) => { await interaction.reply({ content: `The current websocket ping is at ${client.ws.ping}`, flags: [MessageFlags.Ephemeral], }); }, } as Command;