A powerful and extendable Discord bot, with it's own module system :3 thevoid.cafe/projects/voidy
at develop 16 lines 487 B view raw
1import { MessageFlags, SlashCommandBuilder } from "discord.js"; 2import type { Command } from "@voidy/framework"; 3 4export default { 5 id: "ping", 6 data: new SlashCommandBuilder() 7 .setName("ping") 8 .setDescription("View the websocket ping between Discord and the Bot."), 9 10 execute: async (interaction, client) => { 11 await interaction.reply({ 12 content: `The current websocket ping is at ${client.ws.ping}`, 13 flags: [MessageFlags.Ephemeral], 14 }); 15 }, 16} as Command;