import { logger } from "@discordeno/utils" import REST from "../src/lib/handlers/RESTHandler" import CommandHandler from "../src/lib/handlers/CommandHandler" const TYPES = ["CHAT_INPUT", "USER", "MESSAGE"] const SlashCommandHandler = new CommandHandler() const registered = await REST.getGlobalApplicationCommands() console.log("┌" + "-".repeat(58) + "┐") console.log("| " + "ID".padEnd(24, " ") + " | " + "NAME".padEnd(16, " ") + " | " + "TYPE".padEnd(10, " ") + " |") console.log("├" + "-".repeat(58) + "┤") for (let { id, name, type } of registered) { console.log("| " + id.padEnd(24, " ") + " | " + name.padEnd(16, " ") + " | " + TYPES[type - 1].padEnd(10, " ") + " |") } console.log("└" + "-".repeat(58) + "┘") process.exit()