Giter Site home page Giter Site logo

User token support? about discore HOT 6 CLOSED

francessco121 avatar francessco121 commented on May 19, 2024
User token support?

from discore.

Comments (6)

teh-random-name avatar teh-random-name commented on May 19, 2024

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

from discore.

Perksey avatar Perksey commented on May 19, 2024

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

from discore.

Perksey avatar Perksey commented on May 19, 2024

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

from discore.

Francessco121 avatar Francessco121 commented on May 19, 2024

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.

Francessco121 avatar Francessco121 commented on May 19, 2024

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.

Francessco121 avatar Francessco121 commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.