Pinapple
Pinapple

Reputation: 21

Discord.js How to find all the servers a different discord user is in

I want to make a website where people can change what the bot does on their server. I'm currently using Autocode to make it (using discord.js). I also don't know how to link OAouth2 with the code. This is the full code of what I'm at

// Using Node.js 14.x +
// use "lib" package from npm
const lib = require('lib')({
  token: 'token_here'
});
// make API request
let result = await lib.discord.guilds['@0.2.4'].list({
  limit: 100
});
console.log(result[0]);

it works but only gets what guilds the bot is in. I tried to link it to the user but I couldn't find out what to put

Upvotes: 2

Views: 764

Answers (0)

Related Questions