Skip to content

Commit

Permalink
Update slashCommands.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomato6966 authored May 16, 2022
1 parent dc0365b commit 46368f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/slashCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ module.exports = (client) => {
client.slashCommandsData = slashCommandsData;
console.log(`${slashCommandsData.size} slashCommands ${`(With ${slashCommandsData.map(d => d.options).flat().length} Subcommands)`.green} Loaded for all: ${`All possible Guilds`.underline}`.brightGreen);
console.log(`Because u are Using Global Settings, it can take up to 1 hour until the Commands are changed!`.bold.yellow)
}).catch((e)=>{});
}).catch(console.error);
} else {
client.guilds.cache.map(g => g).forEach(async (guild) => {
try{
Expand All @@ -157,7 +157,7 @@ module.exports = (client) => {
.then(slashCommandsData => {
client.slashCommandsData = slashCommandsData;
console.log(`${slashCommandsData.size} slashCommands ${`(With ${slashCommandsData.map(d => d.options).flat().length} Subcommands)`.green} Loaded for: ${`${guild.name}`.underline}`.brightGreen);
}).catch((e)=>{});
}).catch(console.error);
}catch (e){
console.log(String(e).grey)
}
Expand Down

0 comments on commit 46368f0

Please sign in to comment.