mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
Fix
This commit is contained in:
@@ -67,7 +67,7 @@ module.exports = class XiaoClient extends CommandoClient {
|
|||||||
const { body } = await request
|
const { body } = await request
|
||||||
.post(`https://discord.bots.gg/api/bots/${this.user.id}/stats`)
|
.post(`https://discord.bots.gg/api/bots/${this.user.id}/stats`)
|
||||||
.set({ Authorization: BOTS_GG_TOKEN })
|
.set({ Authorization: BOTS_GG_TOKEN })
|
||||||
.send({ guildCount: this.guilds.size });
|
.send({ guildCount: this.guilds.cache.size });
|
||||||
this.logger.info('[BOTS.GG] Posted stats.');
|
this.logger.info('[BOTS.GG] Posted stats.');
|
||||||
return body;
|
return body;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -82,8 +82,8 @@ module.exports = class XiaoClient extends CommandoClient {
|
|||||||
.post(`https://discordbotlist.com/api/v1/bots/${this.user.id}/stats`)
|
.post(`https://discordbotlist.com/api/v1/bots/${this.user.id}/stats`)
|
||||||
.set({ Authorization: DISCORDBOTLIST_TOKEN })
|
.set({ Authorization: DISCORDBOTLIST_TOKEN })
|
||||||
.send({
|
.send({
|
||||||
guilds: this.guilds.size,
|
guilds: this.guilds.cache.size,
|
||||||
users: this.users.size,
|
users: this.users.cache.size,
|
||||||
voice_connections: this.dispatchers.size
|
voice_connections: this.dispatchers.size
|
||||||
});
|
});
|
||||||
this.logger.info('[DISCORDBOTLIST] Posted stats.');
|
this.logger.info('[DISCORDBOTLIST] Posted stats.');
|
||||||
|
|||||||
Reference in New Issue
Block a user