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 toolkit12mo 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/luna12mo ago
djs does not support oauth2 afaik
garvit012
garvit01212mo ago
I am talking about this link
treble/luna
treble/luna12mo ago
Thats not djs related, and i dont think thats possible either
garvit012
garvit01212mo 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/luna12mo ago
Still not djs related and you cant Only with audit logs
MrMythical
MrMythical12mo ago
use the identify scope iirc Continue this conversation elsewhere though
garvit012
garvit01212mo ago
can u provide more info about identify scope iirc
MrMythical
MrMythical12mo ago
Continue this conversation elsewhere though