Rapptz / discord.py

An API wrapper for Discord written in Python.
http://discordpy.rtfd.org/en/latest
MIT License
14.76k stars 3.75k forks source link

How to control a non-bot account that has authorised my app with OAuth2? #1560

Closed retnikt closed 5 years ago

retnikt commented 6 years ago

I have authorised my app with OAuth 2 and got a token Ll4MS********************PYu1e. My client ID and secret are 4864************** and -Vzz************************Agod How do I use these in client.login to login and use the API to send messages, change my status, etc, without using the Discord app?

Hornwitser commented 6 years ago

You don't.

The only things you can do through the OAuth2 API is listed under scopes in the Discord API documentation (note that the endpoints for the rpc scopes are not publicly available.) There's no way to send messages on a user's behalf through the OAuth2 API.

crrapi commented 6 years ago

Keep in mind that Selfbots are against the Discord Terms of Service, and using the a bot account is the only way you should interact with the API