[Help needed]Created needed api but its not working inside bubble need help 0w0

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 :eyes: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 dosnt work m8 why would i have the user add the bot to a server EVERY time they login…

been threw this already + i already have these calls + am doing it in one WF

again your getting me to add THE BOT TO A USERS SERVER

I NEED for the 4th time to ADD USER TO MY SERVER

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).

m8 please again look at my plugins … DisList.Me Contributor Profile | Bubble actually :eyes:

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.

1 Like

m8 if this works for what i need i want the world on no-code to know im a tool and sorry for grief if it dosnt we are back to step one

wait i need this sandbox url how is this done u got the token showing i couldnt

that token i can use my plugin i made to auto add user to guild via my WF 0w0 :tada:this is 100% would be my amounted solution

thanks marked as solution still looking at how u have it tho


missing state from oauth provider so assuming i can not use

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

no still dosnt work m8 circut i.e my test account is not logged in to the website and is not added to guild ether on my wf :frowning_face:

@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


@Jici like i said i have this already m8 -

im still not getting oauth2 access_token not sure how here still so still need help

what ever ur doing or plugin u are using to get access_token works mine does not to even provide back token hence my issue

and i see it right now


im missing this

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

no i get this m8 but i tried even using access_token with out a refresh as well i was testing something to see even if i could call a refresh token