UNPKG

discordbotlist

Version:

Integrate with discordbotlist.com and support voting rewards and promote your bot's stats on the website.

19 lines (18 loc) 538 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DjsAdapter = void 0; const base_1 = require("./base"); class DjsAdapter extends base_1.BaseAdapter { constructor(client) { super(); this.client = client; this.botId = client.user.id; } getBotStats() { return { guilds: this.client.guilds.cache.size, users: this.client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0), }; } } exports.DjsAdapter = DjsAdapter;