Updated scripts

This commit is contained in:
2025-03-08 14:09:25 +01:00
parent 8dfcc7c346
commit 6de07de5fe
3 changed files with 8 additions and 8 deletions

View File

@@ -1,8 +1,8 @@
import { REST, RESTPutAPIApplicationCommandsJSONBody, Routes } from "discord.js"
import fs from "fs"
import { ICommand } from "../src/interfaces"
import { ICommand } from "../src/typings"
import env from "../src/utils/Env"
import { log } from "../src/utils/Logger.js"
import { log } from "../src/utils/Logger"
const rest = new REST({ version: "10" }).setToken(env.dev.DEVTOKEN)
const commands: RESTPutAPIApplicationCommandsJSONBody = []
@@ -26,7 +26,7 @@ try {
log(`Started refreshing ${commands.length} application (/) commands.`, "info")
await rest.put(
Routes.applicationGuildCommands(env.dev.devid, env.dev.guildid),
Routes.applicationGuildCommands(env.dev.DEVID, env.dev.GUILDID),
{ body: commands }
).then(() => {
log(`Successfully reloaded ${commands.length} application (/) commands.`, "info")