me when discord
This commit is contained in:
parent
46bcb947e9
commit
52ba089e43
1 changed files with 9 additions and 9 deletions
|
@ -114,13 +114,13 @@ export function update() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function send(bot) {
|
export async function send(bot) {
|
||||||
const commandArray = update();
|
// const commandArray = update();
|
||||||
log("info", "Sending application command data to Discord...");
|
log("info", "Not sending application command data to Discord... LOL");
|
||||||
let cmdArray = commandArray.main;
|
// let cmdArray = commandArray.main;
|
||||||
if (process.env.ADMIN_SERVER && process.env.ADMIN_SERVER !== "") {
|
// if (process.env.ADMIN_SERVER && process.env.ADMIN_SERVER !== "") {
|
||||||
await bot.application.bulkEditGuildCommands(process.env.ADMIN_SERVER, commandArray.private);
|
// await bot.application.bulkEditGuildCommands(process.env.ADMIN_SERVER, commandArray.private);
|
||||||
} else {
|
// } else {
|
||||||
cmdArray = [...commandArray.main, ...commandArray.private];
|
// cmdArray = [...commandArray.main, ...commandArray.private];
|
||||||
}
|
// }
|
||||||
await bot.application.bulkEditGlobalCommands(cmdArray);
|
// await bot.application.bulkEditGlobalCommands(cmdArray);
|
||||||
}
|
}
|
Loading…
Reference in a new issue