GithubHelp home page GithubHelp logo

gstark667 / ripcord-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saucecode/ripcord-api

0.0 2.0 0.0 25 KB

Reverse engineered Discord API that mimics the official webclient.

Python 100.00%

ripcord-api's Introduction

ripcord-api

This project endeavors to reverse engineer as much of the unreleased Discord Client API as possible, and produce a library of functions that lets programmers:

  • Write a better, more fully featured, and open source Discord client.
  • Write bots which can respond to voice commands.
  • Implement optional E2EE in a Discord Client.

Also because message deletion is stupid.

Proof of concept - Part of this project was ported to Java to write a small standalone client, just to show that it was possible.

Currently implemented/figured out functions

These are functions of DiscordClient.

login(email, password)
Sends a login request with email:password, and gets an authtoken.

logout()
Sends a logout request. Closes websocket connection.

get_me()
Gets information about the logged in user, saving the following information: username, email, phone number, avatar, id, discriminator, verified email.

retrieve_websocket_gateway()
Gets the websocket URL. Usually wss://gateway.discordapp.com/.

download_messages(channelid, limit=50)
Returns up to 50 (unless specified otherwise) messages from the channel channelid.

connect_websocket(gateway_url)
Connects to and uses the websocket at gateway_url.

send_message(channelid, message, tts=False, nonce="123")
Sends message with content message to the channel given by channelid. Optional flag to use Discord's TTS feature.

send_start_typing(channelid)
Sends a signal to show that the user is typing in the channel given by channelid.

send_presence_change(presence)
Changes the status of the user. presence can be one of idle, online, dnd, invisible.

send_view_server(serverid)
Sends a (OP 12) signal declaring which server you are looking at. You will start receiving TYPING_START packets from users in these servers.

retrieve_servers()
Retrieves a list of all the servers the current user is a member of.

retrieve_server_channels(serverid)
Retrieves a list of channels in the server given by serverid. This will return ALL channels that exist, including voice channels, and channels that you are not a member of.

retrieve_server_members(serverid)
Retrieves a list of members in the server given by serverid. Members who have a special nickname in serverid will have a 'nick' field.

The working project name is Communication Security is Mandatory.

ripcord-api's People

Contributors

saucecode avatar

Watchers

James Cloos avatar Gavin Stark avatar

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.