Move guild count into own function
This commit is contained in:
parent
c470b12f30
commit
855daefa4d
2 changed files with 10 additions and 5 deletions
8
util/getGuildCount.js
Normal file
8
util/getGuildCount.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
module.exports = function(client){
|
||||
let guildCount = 0;
|
||||
client.guilds.cache.each(() => {
|
||||
guildCount++
|
||||
});
|
||||
|
||||
return guildCount;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue