import {REST, Routes} from 'discord.js'; require("dotenv").config(); let token = process.env["DISCORD_TOKEN"] as string; let clientId = process.env["CLIENT_ID"] as string; let guildId = process.env["GUILD_ID"] as string; const rest = new REST().setToken(token); rest.put(Routes.applicationGuildCommands(clientId, guildId), {body: [require("./commands/ping").data.toJSON()]});