Updated scripts
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { REST, RESTPutAPIApplicationCommandsJSONBody, Routes } from "discord.js"
|
||||
import fs from "node: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.prod.TOKEN)
|
||||
|
||||
const commands: RESTPutAPIApplicationCommandsJSONBody = []
|
||||
@@ -25,7 +25,7 @@ try {
|
||||
log(commandsString.join("\n"), "info", { type: "preset", color: "lavender" })
|
||||
|
||||
await rest.put(
|
||||
Routes.applicationCommands(env.dev.clientid),
|
||||
Routes.applicationCommands(env.dev.CLIENTID),
|
||||
{ body: commands }
|
||||
).then(() => {
|
||||
log(`Successfully reloaded ${commands.length} application (/) commands.`, "info", { type: "preset", color: "green" })
|
||||
|
||||
Reference in New Issue
Block a user