all it needs to do is just get that access_token for user to thus then add user to my server right thats all i can handle storage techniques and removal from db or storage if need be i already have the add user to server call on my other plugin but the access_token is where im going all wrong i only got as far as i did stripping down the discord plugin found in bubble marketplace that actually dosnt work and provides back a scope 4 error so i wanted to make it work and did all this so far so id like to at least get this or im really feeling 9 days of lost cause on this its to also prevent a constant pop up in said users face telling them to join the server over and over and over because this is how i need to handle the issue till i get the add-guild-member working right from Discord Developer Portal + if i can see a working version of what your trying to tell me id be able to at least back engineer i.e learn from what you did to progress my own knowledge for the future im very visual learner @Jici so again if you can agree to join a plugin or make one on my behalf i can mark this issue solved and give you the credit you deserve for all this hassle lol (please note ive been on this issue 9 DAYS 4 them straight no sleep)
I only do this on consultancy or coaching session, sorry.
The most I can do is to share my settings in my sandbox and you can explore how Iāve set thing.
Be aware that my example request the user to add my bot to their server and I donāt store any data in my DB.
If you do everything in one WF process. You should
Send the user to authorize url. Get user authorize your app and redirect with the code in url. Get access token with the code (authorization_code type) with the token endpoint. Store this access token in DB. Use this access token (before it expire) to add the user to the server your want using the bot with the endpoint https://discord.com/api/v8/guilds/[guild.id]/members/[user.id] the authorization header is Authorization: Bot withbottoken
The body will have the user access token
{"access_token":"<access_token>"}
This workflow is not created in my sandbox. Just the auth process
This was my testing because Iw as thinking this is what you was looking to do.
I understand that you want the user to be added to your server using guild.join (so they need to authorize you to do that).
anyways for someone who understands what im attempting todo and can see how this works like ive stated please let me know as im sorry but im getting no where with the provided response of help as this isnt āhelpā as its not helping me todo what im asking your telling me to add the bot into a users server i can do that with a url or by simply adding bot into the list of scopes m8 I KNOW ALL THIS, what again you are NOT UNDERSTANDING is i need to use the code I HAVE WHICH IVE SHOWN WORKS IN PLUGIN to exchange it for a access_token to use that token to add member to my server not add bot to users server man READ what im TYPING or dont reply if you can not further the help @Jici everything you have been āhelpingā with is stuff ive done or wrong info or something else man you are not helping but making a pain in the butt for anyone trying to read this thread who may actually know the reason
AGAIN FOR ANYONE WHO UNDERSTANDS THE ISSUE
The issue is im trying to exchange ?code= for users access_token it will not work as i believe its providing back the { of the json as it should be providing back body the thing jici is saying todo is to have user ADD the bot to a server EVERY time they sign in that defeats the purpose of a discord listing service site like TOP.gg or any other site found like disboards.org or discord.me ⦠its just upsetting cause they are not understanding that i need to exchange the code given from url after user logins to exchange for a users access_token with their refresh token, this isnt something that should be this hard its not todo with changing my plugin or calls or header or this or that as the plugins work 100% like ive shown in video they are open source you may test them for yourself AND SEE THEY WORK as well but inside bubble they do not so please if you may double look the provided Cloudrack.ca Contributor Profile | Bubble plugins + above video and more it mean alot
@Jici please stop replying as you are just making the thread longer for no reason resulting me to retype this message over and over after each of your failed attempts to understand what im saying or the docs on discord clearly state for the love of god stop replying with info that is no help m8 stop please just stop @Jici i continually see you typing and we are getting no where on this i need someone who can understand the discord docs as you do not - take this how you will reply to defend your honor i dont care i will just copy paste this over type your reply as your replies have been the same thing over and over or no help to what im amounting todo
I tell you I understand your issue now and Iāve provided a lot of indication on how to make this work. My previous reply clearly tell you that what you donāt need to add bot to user server. What you want is to add user to your server.
Ive updated my demo to show you the full process but instead of storing access token in DB, I put it in state. You can even click on the button and get added to my server. (Didnāt set it to be done automatically because this may not be something you want ;p) https://sandboxjc.bubbleapps.io/version-test/discord
Iāll delete this in 1hours. No more reply from me.
Now good luck.
ive come into this error many times and is what has prevented me from further continuing thus maybe the error in between of the issue does it have to be said domain.ltd this probably is my man error here? @Jici last question as this is working so far up to this issue
@Jici sadly again not whats needed and not fully understanding the issue
I need user click button this logins user using discord after they click approve threw discord
then they get a code returned + are loggedin to my website - that code is then exchanged for a users access_token quickly to then add user to my server boom issue solved sorry ur reply is not actualy the solution
if you further go and look at my own site http://dislist.me/version-test/login and try to login you will be presented a POPUP asking you to join the server until you do it wont go away on every new page load ā¦unless your inside my server ive done this already actually and is something im already doing - again this is what I donāt want is a annoying pop up and just have said user who logged in joined into my server if they are not already ⦠thank you @Jici close tho
The error show that you are using a refresh token call while you should use an code WF
I forget to tell you that my demo is split in step. I added a button to add the user to server, but you can do it all in one step. Just that itās easier for you to sshow data I get after the authorize part