me when discord

This commit is contained in:
murm 2023-03-15 10:55:29 -04:00
parent 46bcb947e9
commit 52ba089e43

View file

@ -114,13 +114,13 @@ export function update() {
}
export async function send(bot) {
const commandArray = update();
log("info", "Sending application command data to Discord...");
let cmdArray = commandArray.main;
if (process.env.ADMIN_SERVER && process.env.ADMIN_SERVER !== "") {
await bot.application.bulkEditGuildCommands(process.env.ADMIN_SERVER, commandArray.private);
} else {
cmdArray = [...commandArray.main, ...commandArray.private];
}
await bot.application.bulkEditGlobalCommands(cmdArray);
// const commandArray = update();
log("info", "Not sending application command data to Discord... LOL");
// let cmdArray = commandArray.main;
// if (process.env.ADMIN_SERVER && process.env.ADMIN_SERVER !== "") {
// await bot.application.bulkEditGuildCommands(process.env.ADMIN_SERVER, commandArray.private);
// } else {
// cmdArray = [...commandArray.main, ...commandArray.private];
// }
// await bot.application.bulkEditGlobalCommands(cmdArray);
}