Skip to content

0.15.0

Compare
Choose a tag to compare
@abalabahaha abalabahaha released this 05 Apr 05:05

Breaking changes

  • @discordjs/opus replaces node-opus is now the supported native Opus library (voice connections) (9830082)
    • @discordjs/opus is a maintained almost-fork of the now-deprecated node-opus
  • GuildChannel#nsfw no longer uses old name-based logic (7d029d0)
    • Discord client used to (but no longer does) treat channels with name == "nsfw" or name starting with "nsfw-" as NSFW
    • GuildChannel#nsfw now strictly mirrors the API property
  • The messageCreate, messageUpdate, and messageDelete events now emit with partial messages/channels if possible (see docs) (c81b689, 8acd468)
  • Client#token was removed (99f4163)
    • The current location is Client#_token, which is non-enumerable and not stable
  • The guildEmojisUpdate event now emits with a partial guild if possible (see docs) (16c6a76)
  • Node.js >= 10.4.0 is now the minimum supported version (3649cd7)
    • Primarily for BigInt support
  • Permission#allow, Permission#deny, permission constants are now BigInts (3649cd7, f092b89, fd2ee5f, d7c69f2, 39dd05f)
    • Discord permissions have exceeded past 32-bits, so non-BigInt bitwise logic no longer works properly. Using BigInt helps with future-proofing
    • Permission sent in REST methods can be either BigInt or number type
  • uws is no longer supported (b459a94)
    • The library is abandoned and buggy

Deprecations

  • Existing REST-related Client options are deprecated (2095d3e, 7a5ec43)
    • Equivalent options are now under options.rest in the Client constructor
  • Support for bot tokens without Bot prefixes is deprecated (99f4163)
    • Bot tokens should be prefixed with Bot (see docs)
  • The requirement for URI-encoding audit log/ban reasons is deprecated (6771b3f)
    • Normal, unformatted reasons are now formatted properly in both the audit log and ban list
    • The Client option options.rest.decodeReasons was introduced for this transition. With the current default of true, URI-encoded reasons will be decoded, so URI-encoded reasons will function normally. In the future, options.rest.decodeReasons will be removed, and reasons will no longer be decoded.
  • Some permission constants are deprecated (0d68bf4)
    • viewAuditLog replaces viewAuditLogs, voiceStream replaces stream, viewChannel replaces readMessages, and useExternalEmojis replaces externalEmojis
    • The old names are deprecated, but still work for now

Additions

  • Exposed latency in rawREST event (e789deb)
  • Exposed member in typingStart event (98c261d)
  • Added support for system channel flags (984ffbb)
  • Added support for inline replies (5936086, c77b3af)
  • Added support for guild templates (8e32b98)
  • Added support for Guild#discoverySplash and URL getters (b910d1d)
  • Added support for util.inspect() to more classes (1281781)
  • Added support for userID filter and new properties in audit logs (8ab1ab7, 27b9704, 02e989c)
  • Added support for guild discovery (ed8f2ef)
  • Added support for editing/deleting webhook messages (4195ab8)
  • Exposed Client#application (after ready event) (d41dddf)
  • Exposed Member#pending (af877e7)
  • Added more async support in CommandClient message helpers/generators (fb440b2)
  • Exposed more oldMessage properties in messageUpdate event (936af87)
  • Exposed Message#stickers (9cd3a5d)
  • Added support for message types 20 & 22 (64cf536)
  • Exposed Guild#welcomeScreen (9a89483, c8ab1bb)
  • Exposed VoiceState#selfStream & VoiceState#selfVideo (011548e)
  • Added support for more properties in editChannelPosition() (fc038fa)
  • Added support for more properties in editGuild() (9d7e05e)
  • Exposed new GuildIntegration properties (c149e73)
  • Added new REST options in the Client constructor (2095d3e, 7a5ec43)
  • Added support for stage channels (5ae9f52, 3750145, 7b08976, 8087450)
  • Exposed VoiceChannel#rtcRegion and VoiceChannel#videoQualityMode (f994117, 9da9d05)
  • Added support for files in editWebhookMessage() (32b54c8)
  • Added support for useSlashCommands & voiceRequestToSpeak permissions (906690c, ab38c3f)
  • Added support for content objects in Command messages (4bce200)

Fixes

Contributors