Passing payload in oauth link

I am trying to build a discord integraion with my app, I want to pass a payload (userid of the user who is integrating the bot in my db) in the invite link of the bot and when the bot is added to the guild i want to receive the payload and serverid along with the discord user id Can anyone guide me on this?
9 Replies
d.js toolkit
d.js toolkitā€¢17mo ago
ā€¢ What's your exact discord.js npm list discord.js and node node -v version? ā€¢ Post the full error stack trace, not just the top part! ā€¢ Show your code! ā€¢ Explain what exactly your issue is. ā€¢ Not a discord.js issue? Check out #useful-servers.
treble/luna
treble/lunaā€¢17mo ago
djs does not support oauth2 afaik
garvit012
garvit012ā€¢17mo ago
I am talking about this link
treble/luna
treble/lunaā€¢17mo ago
Thats not djs related, and i dont think thats possible either
garvit012
garvit012ā€¢17mo ago
this is the url generated by discord allowing people to add my bot to their servers with the app I just want to pass a userid which i can recieve when the bot is added
treble/luna
treble/lunaā€¢17mo ago
Still not djs related and you cant Only with audit logs
MrMythical
MrMythicalā€¢17mo ago
use the identify scope iirc Continue this conversation elsewhere though
garvit012
garvit012ā€¢17mo ago
can u provide more info about identify scope iirc
MrMythical
MrMythicalā€¢17mo ago
Continue this conversation elsewhere though
Want results from more Discord servers?
Add your server