Comments (6)
Currently this is not possible, Discord's API is only for use with bots, user authentication isn't publicly documented nor supported.
from discore.
Huh, Discord.Net seems to have support for it.
from discore.
And the authentication flow is documented, we have implemented a system which acquires the user token.
from discore.
To elaborate on this a little more: the Discord developers have stated that their API is intended only for bots as of about a year ago. While technically you can authenticate as a user and use the documented API bits to make a basic client, it's not meant to be used this way.
We're just trying to respect this by keeping Discore under the scope of bot applications.
If their stance on this has changed recently, please correct me however.
from discore.
I do understand that some of the other .NET Discord libraries support normal user authentication, however those libraries were around before Discord stated that they only wish to support proper bots. Discore was a little late to the party, so we decided to only support bots.
from discore.
Apologies for splitting this into so many comments. I should clear up my explanation here.
Usage of user tokens is forbidden by Discord (this is called self-bots).
You can however use some of the API via normal OAuth (this is different than user tokens). There are some things supported by Discord. However, it's only a handful of HTTP endpoints. As noted here, only bots are allowed to use the WebSocket API, which Discore heavily focuses on. Since only a very small subset of the HTTP API is meant for non-bots, Discore opted out for supporting it.
Sorry for any confusion about our stance.
from discore.
Related Issues (20)
- Support text in voice channels HOT 1
- Support voice Gateway v4 HOT 1
- Add guide for uploading/managing message attachments
- Parse REST API form errors
- Let DiscoreLogger use format strings
- Let DiscordVoiceConnections be reused
- DiscordVoiceConnections can crash if the application is moved between channels too fast
- Create unit tests
- Support thread channels
- Support message components
- Consider removing 'Discord' prefix from classes HOT 1
- Merge Discore.Samples into this repository
- Remove opus and libsodium binaries from this repository HOT 1
- Add 'reason' parameter for CreateGuildBan HOT 1
- Add new DiscordGame properties
- Allow setting the X-Audit-Log-Reason header for actions that support it
- Change BeginGuildPrune to return a nullable int HOT 1
- Support new CDN url types
- Support multiple embeds/attachments when creating/editing messages HOT 1
- API v6 discontinuation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discore.