passport-discord
passport-discord copied to clipboard
guilds.join?
By looking around the code, it seems that this isn't supported yet. May I ask when this will be implemented?
Same issue here, did you get it working at some point?
I ended up fixing this, in your passport.use call you need to add this bit :
var options = {
method: 'PUT',
url: `https://discordapp.com/api/guilds/${guildID}/members/${discordProfileID}`,
headers: {
authorization: 'Bot ${botToken}',
'content-type': 'application/json'
},
body: {access_token:oAUTHAccessToken},
json: true
};
request(options)
Could you elaborate on exactly where in the passport.use call?