MOAR
This commit is contained in:
parent
c672085dd2
commit
5582bcc8c3
2
index.js
2
index.js
|
@ -47,6 +47,7 @@ client.on("ready", () => {
|
|||
let start = Date.now()
|
||||
// For every guild
|
||||
for (const guild of client.guilds.cache.values()) {
|
||||
let gStart = Date.now();
|
||||
console.log(`${colors.cyan("[INFO]")} Registering Commands for ${colors.green(guild.name)}...`);
|
||||
// Register commands
|
||||
await rest.put(
|
||||
|
@ -54,6 +55,7 @@ client.on("ready", () => {
|
|||
body: commands
|
||||
},
|
||||
);
|
||||
console.log(`${colors.cyan("[INFO]")} Successfully registered commands for ${colors.green(guild.name)}. Took ${colors.green((Date.now() - gStart) / 1000)} seconds.`);
|
||||
};
|
||||
// Register global commands
|
||||
console.log(`${colors.cyan("[INFO]")} Registering Global Commands...`);
|
||||
|
|
Loading…
Reference in a new issue