Add more debug logs

This commit is contained in:
Christopher Cookman 2023-03-11 16:54:12 -07:00
parent 68883bcd26
commit c672085dd2
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -47,6 +47,7 @@ client.on("ready", () => {
let start = Date.now()
// For every guild
for (const guild of client.guilds.cache.values()) {
console.log(`${colors.cyan("[INFO]")} Registering Commands for ${colors.green(guild.name)}...`);
// Register commands
await rest.put(
Routes.applicationGuildCommands(client.user.id, guild.id), {
@ -54,6 +55,8 @@ client.on("ready", () => {
},
);
};
// Register global commands
console.log(`${colors.cyan("[INFO]")} Registering Global Commands...`);
await rest.put(
Routes.applicationCommands(client.user.id), {
body: commands