mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
20 lines
481 B
TypeScript
20 lines
481 B
TypeScript
import { Bot } from "../../bot.ts";
|
|
import { configs } from "../../configs.ts";
|
|
|
|
export async function updateApplicationCommands() {
|
|
await Bot.helpers.upsertApplicationCommands(
|
|
Bot.commands
|
|
// ONLY GLOBAL COMMANDS
|
|
.filter((command) => !command.devOnly)
|
|
.array(),
|
|
);
|
|
|
|
await Bot.helpers.upsertApplicationCommands(
|
|
Bot.commands
|
|
// ONLY GLOBAL COMMANDS
|
|
.filter((command) => !!command.devOnly)
|
|
.array(),
|
|
configs.devGuildId,
|
|
);
|
|
}
|