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) {
|
||||
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);
|
||||
}
|
Loading…
Reference in a new issue