This commit is contained in:
Dragon Fire
2021-04-16 08:03:47 -04:00
parent 105bb18ae6
commit 294d4576b6
+3 -3
View File
@@ -67,7 +67,7 @@ module.exports = class XiaoClient extends CommandoClient {
const { body } = await request
.post(`https://discord.bots.gg/api/bots/${this.user.id}/stats`)
.set({ Authorization: BOTS_GG_TOKEN })
.send({ guildCount: this.guilds.size });
.send({ guildCount: this.guilds.cache.size });
this.logger.info('[BOTS.GG] Posted stats.');
return body;
} catch (err) {
@@ -82,8 +82,8 @@ module.exports = class XiaoClient extends CommandoClient {
.post(`https://discordbotlist.com/api/v1/bots/${this.user.id}/stats`)
.set({ Authorization: DISCORDBOTLIST_TOKEN })
.send({
guilds: this.guilds.size,
users: this.users.size,
guilds: this.guilds.cache.size,
users: this.users.cache.size,
voice_connections: this.dispatchers.size
});
this.logger.info('[DISCORDBOTLIST] Posted stats.');