Skip to content

Instantly share code, notes, and snippets.

@meew0
Created March 11, 2016 14:09
Show Gist options
  • Select an option

  • Save meew0/9b1c2ac58030af4cb05b to your computer and use it in GitHub Desktop.

Select an option

Save meew0/9b1c2ac58030af4cb05b to your computer and use it in GitHub Desktop.
discordrb 2.0.0 planned changes

Definite changes

  • Users will be divided into User and Member classes, where User represents a global user and Member represents a user on a server. This is both cleaner and easier to do because Discord already separates these two things in the API.
  • WebSocket connections will be using a wrapper class instead of Faye/WSCS directly. This lets me switch both WSes to WSCS which doesn't rely on EventMachine (and if I'm dissatisfied with WSCS I can switch to something else entirely).
  • Caching code will be separated into a module and redone somewhat
  • Some stuff will be made more consistent, like server vs guild
  • The bot initializers will be restructured to only have an arguments hash that specifies everything
  • Removal of all the deprecated stuff

I will also support any changes to the API when they come out, like sharding.

Possible changes (from more likely to less likely)

  • Queueing system for voice playback
  • advanced_functionality off by default, it seems to cause more problems than it is useful
  • Voice receive (depends on whether I can get the sockets to work...)
  • LightBot class that only has a REST connection (hard because the current code relies heavily on the existence of caches)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment