Is there an api to access connections?
My profile has an xbox connection, and I want the bot to get my username
6 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPYou would need oauth2 for that
If possible at all
There's an api in discord's documentation.
Just wanted to see if it's possible with d.js
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
So, how do I call this api route in existing discord bot project? What's the most efficient way to do this?
- extend discord.js?
- use fetch to call the api?
djs does not support oauth2