npm eris 0.8.0

latest releases: 0.16.2, 0.17.2, 0.17.1...
6 years ago

Breaking Changes:

  • Removed Guild.defaultChannel (b3ff9b3)
    • Discord has changed the concept of a default channel. Previously, the default channel was just the undeletable channel with the same ID as the guild. Currently, the default channel is the uppermost text channel that a member can view, and is only guaranteed to be "default" the first time a member joins the server. The old default channel can be deleted now, so the old way is no longer reliable.
  • Shard.status will be set to "ready" when the shard is ready, not "connected" (d66a147)
    • A shard can technically be "connected" to Discord but still in the middle of the Discord gateway handshake, and thus not ready to process events and other bot things

Additions:

  • Added audit log reason parameter to guild role manipulation methods (99832bb)
  • Made basically everything toString()able (41bdbef)
  • Made basically everything toJSON()able (cbd4674, 2dfd988)
  • Added latencyThreshold Client option (206480c)
    • This is for the folks who keep getting errors about out-of-sync system clocks and don't care
  • Added before and after parameters to Client.getMessageReaction() and its aliases (1d55807)
  • Added Guild.systemChannelID tracking (9a3d098)
  • Added ability to directly create channels in categories (70555cb)
  • Split GuildChannel into TextChannel and VoiceChannel (7eace2a)
    • TextChannel-only/VoiceChannel-only methods are no longer in Channel/GuildChannel, and guild-only methods are no longer inherited by PrivateChannel
    • This isn't considered a breaking change, since everything that worked before still works

Fixes:

  • Fixed query string duplication in REST error handler (6054367, c45e7c2)
  • Fixed several ratelimiting edge cases (a6171c9, f707943, afd3e1b)
  • Fixed ratelimit reset time offset calculation (712c5eb)
  • Fixed spaces in audit log reason headers (0480c03)
  • Fixed logic causing CategoryChannel.channels to be incomplete (7c9a001)
  • Check constructor name in Collection methods to allow storage of objects with similarly named classes (2c321b2)
    • Allows for Eris objects from different require()d modules to be shared
  • Fixed reaction button error handling in CommandClient (506dd11, 0167ca0)
  • Fixed error when parsing empty search results (03da49e)
  • Handle VoiceConnection errors during Client.joinVoiceChannel() Promise fulfillment (745981d)
  • Cancel resume attempts if the bot is still resuming (d66a147)
  • Fixed clearing game presences (257dd10)
  • Fixed setting game presences after abrupt Discord change (a4a021f)
  • Fixed uploading multiple attachments in a single message (0725213)
  • Fixed some a ton of TypeScript definitions (3359227, 0c1a4e4, 865eb1a, 7a214f7, ec51fad, 1e9a4d4, 3946843)

Don't miss a new eris release

NewReleases is sending notifications on new releases.