mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 08:17:35 +02:00
snekfetch -> superagent
This commit is contained in:
+2
-2
@@ -1,10 +1,10 @@
|
||||
const snekfetch = require('snekfetch');
|
||||
const request = require('superagent');
|
||||
const { DISCORD_BOTS_TOKEN } = process.env;
|
||||
|
||||
class BotListUtil {
|
||||
static async discordBots(client) {
|
||||
try {
|
||||
const { body } = await snekfetch
|
||||
const { body } = await request
|
||||
.post(`https://bots.discord.pw/api/bots/${client.user.id}/stats`)
|
||||
.set({ Authorization: DISCORD_BOTS_TOKEN })
|
||||
.send({ server_count: client.guilds.size });
|
||||
|
||||
Reference in New Issue
Block a user