Remove guild-command removal
This commit is contained in:
parent
65dd44fd43
commit
5cbb6ad445
20
index.js
20
index.js
|
@ -69,16 +69,16 @@ client.on('ready', async () => {
|
||||||
log.error(error)
|
log.error(error)
|
||||||
});
|
});
|
||||||
|
|
||||||
// Clear guild commands
|
// // Clear guild commands
|
||||||
log.info("Clearing guild commands...")
|
// log.info("Clearing guild commands...")
|
||||||
const guilds = client.guilds.cache.map(guild => guild.id);
|
// const guilds = client.guilds.cache.map(guild => guild.id);
|
||||||
for (const guild of guilds) {
|
// for (const guild of guilds) {
|
||||||
rest.put(Discord.Routes.applicationGuildCommands(client.user.id, guild), { body: [] }).then(() => {
|
// rest.put(Discord.Routes.applicationGuildCommands(client.user.id, guild), { body: [] }).then(() => {
|
||||||
log.success(`Cleared commands for guild ${guild}`)
|
// log.success(`Cleared commands for guild ${guild}`)
|
||||||
}).catch((error) => {
|
// }).catch((error) => {
|
||||||
log.error(error)
|
// log.error(error)
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log.error(error)
|
log.error(error)
|
||||||
|
|
Loading…
Reference in a new issue