Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User token support? #49

Closed
Perksey opened this issue Apr 2, 2018 · 6 comments
Closed

User token support? #49

Perksey opened this issue Apr 2, 2018 · 6 comments

Comments

@Perksey
Copy link

Perksey commented Apr 2, 2018

We're interested in using Discore as a discord client library for Users, not bots. Is this possible in the current version?

@shortcord
Copy link
Collaborator

shortcord commented Apr 2, 2018

Currently this is not possible, Discord's API is only for use with bots, user authentication isn't publicly documented nor supported.

@Perksey
Copy link
Author

Perksey commented Apr 2, 2018

Huh, Discord.Net seems to have support for it.

@Perksey
Copy link
Author

Perksey commented Apr 2, 2018

And the authentication flow is documented, we have implemented a system which acquires the user token.

@Francessco121
Copy link
Owner

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.

@Francessco121
Copy link
Owner

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.

@Francessco121
Copy link
Owner

Francessco121 commented Apr 2, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants