Skip to content

Commit

Permalink
Refactor command count to use client.commands.size
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed May 6, 2024
1 parent 7a960b4 commit 4ef7b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ module.exports = class Client {
const url = `https://api.discord.place/bots/${client.user.id}/stats`;
const data = {
server_count: client.guilds.cache.size,
command_count: Object.keys(client.commands).length
command_count: client.commands.size
};

try {
Expand Down

0 comments on commit 4ef7b60

Please sign in to comment.