Updated scripts to new format
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { REST, Routes } from "discord.js"
|
||||
import config from "../src/utils/Config"
|
||||
import env from "../src/utils/Env"
|
||||
|
||||
const rest = new REST({ version: "10" }).setToken(config.dev.devtoken)
|
||||
const rest = new REST({ version: "10" }).setToken(env.dev.devtoken!)
|
||||
|
||||
async function deleteCommands() {
|
||||
try {
|
||||
console.log("Started deleting application (/) commands.")
|
||||
await rest.put(
|
||||
Routes.applicationGuildCommands(config.dev.devid, config.dev.guildid),
|
||||
Routes.applicationGuildCommands(env.dev.devid!, env.dev.guildid!),
|
||||
{ body: [] },
|
||||
)
|
||||
console.log("Successfully deleted application (/) commands.")
|
||||
|
||||
Reference in New Issue
Block a user