Updated scripts
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user