izy521 / discord.io

A small, single-file library for creating DiscordApp clients from Node.js or the browser
https://discord.gg/0MvHMfHcTKVVmIGP
MIT License
535 stars 155 forks source link

get all serverids the bot is connected to? #315

Open e0xify opened 5 years ago

e0xify commented 5 years ago

is there a way to get the serverids from where the bot is connected to?

i want to make sure that no one has added the bot, which is not authorized yet.

thx

cloudrac3r commented 5 years ago

Object.keys(bot.servers) gives an array of server IDs.

Imagine reading the docs :)))))