Skip to content

Instantly share code, notes, and snippets.

@fwaechter
Created February 3, 2019 20:37
Show Gist options
  • Save fwaechter/0c0e7d951b9055d99782b284a8afa17b to your computer and use it in GitHub Desktop.
Save fwaechter/0c0e7d951b9055d99782b284a8afa17b to your computer and use it in GitHub Desktop.
const { Client } = require('discord.js');
const client = new Client();
const token = 'dein user token hier: https://discordhelp.net/discord-token';
client.on('ready', () => {
console.log("Servers:")
client.guilds.forEach((guild) => {
console.log(" - " + guild.name)
})
});
client.login(token);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment