Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

2.0.0

Compare
Choose a tag to compare
@izy521 izy521 released this 16 Aug 20:43
· 282 commits to master since this release

Major

  • discord.io now works in the browser and Node, with no tools!
  • CJOpus Emscripten libopus bindings so node-opus isn't required, still a WIP.
  • new DiscordClient removed, please use new Discord.Client
  • Inline documentation (JSDoc)
  • discord.io update notification removed
  • Logging in with username & password removed
  • Role#color_values moved to Discord.Colors
  • Channel#permission_overwrites changed to Channel#permissions alongside structural changes.
  • Channel permission editing introduced.
  • Deprecated disconnected event removed, please use disconnect.

Methods

  • editChannelPermissions added.
  • getAudioContext now uses (error, stream) as callback arguments.
  • listBans renamed to getBans.
  • listServerInvites renamed to getServerInvites.
  • listChannelInvites renamed to getChannelInvites.
  • serverFromChannel removed.
  • setGlobalRequestDelay removed.
  • setPresence's game property is now an Object that takes name, type and url.

Minor

  • "Using [Encoder]" removed
  • Typings temporarily removed until someone wants to PR them for the new methods.
  • Fixed typing bug in sendMessage
  • Fixed editing servers
  • Added TEXT_EXTERNAL_EMOJIS permission.
  • WebSocket title emitter algorithm changed.
  • large_threshold raisedd back to 250.
  • Use zlib.gunzip instead of zlib.gunzipSync for older Node versions
  • Fix crash when bot is removed from servers
  • Fix WebSocket send method.

Pull Requests

  • #85 Client#editRole fixed
  • #87
    • Updating message cache fixed.
    • Curly braces added in VOICE_STATE_UPDATE
    • Removed unused arguments in prepareAudio
  • #93
    • Fix channel initialization
    • Fix audio handling
  • #94 Set voice channel ID if present.