Using the discord API with a bot and API connector in bubble IO
Hello everyone!
I'm trying to configure the API connector in bubble.io to work with a discord bot.
I've been able to configure this API connector to work with a normal user, but not with a bot. With a normal user I'm using Oauth2 user-agent flow, setting the auth redirect page, client ID, app secret etc' and it works.
However with configuring the bot, it seems I just need to enter the bot's access token somewhere?
I've been trying to look all over the internet for examples on how to do this, and they all use discord.js which deals with all the authentication , so I can't find a simple list of how to configure the headers when authenticating with a bot.
A simple JS page that authenticates a bot (without discord.js) or some way that does this but shows all the headers config would also help, that way I will probably be able to know how to set it in bubble.io
Thanks for your help!
-
Good chance you may have tried this already but it might be the simple answer, just like what you do with adding a personal bot to a discord server via https://discord.com/api/oauth2/authorize
then adding the scope value:(continuing after authorize in url) -- > ?client_id=YOUR_CLIENT_ID&scope=bot
There may be a way to do this with bubble.io via webhooks where data can be sent
albeit not really sure if u can authenticate bots outside discord js0 -
I was able to solve this like this:
Auth type: private key in header
key name: authorizationKey value: Bot <my key>
0
Iniciar sesión para dejar un comentario.
Comentarios
2 comentarios