Skip to content

0.18.0

Latest
Compare
Choose a tag to compare
@abalabahaha abalabahaha released this 22 Sep 12:20
· 28 commits to dev since this release

Breaking Changes

  • Remove all user account features (0b3ef10)
  • Removed system message content handling (clashes with stage system messages) (1f61e8e, 55a8a69)
  • Restructure Channel classes (737e9f7, 4dbb828)
    • TextVoiceChannel removed
    • Channel.client hidden (renamed Channel._client)
    • DMChannel.recipient removed, replaced with DMChannel.recipients collection (should ever only contain one entry)
    • Channel class tree reworked
  • GuildAuditLogEntry channel, guild, message, user, and Invite.guild can now return uncached with object containing id only (7bfc88b)
  • MessageActivityFlags constant renamed to ActivityFlags (e4edf0b)
  • StoreChannel removed (3429b8f)
  • Application Command Permissions v2 (3139ca9)
    • bulkEditCommandPermissions() removed, endpoint no longer exists
  • getActiveThreads() removed, endpoint no longer exists (v10) (a331615)
  • User.globalName exposed, username migration, default avatar recalculated (d0269ad)

Deprecations

  • Restructure Channel classes (737e9f7)
    • PrivateChannel is now DMChannel
    • Client.privateChannelMap is now Client.dmChannelMap
    • Client.privateChannels is now Client.dmChannels
  • Various permission names replaced, e.g. voicePrioritySpeaker is now prioritySpeaker (e7a9022)
  • banGuildMember() deleteMessageDays is replaced by deleteMessageSeconds (bd88d30)

Additions

  • Expose Polls (31c4608)
  • Expose Voice channel status (a1a449f)
  • Expose Super reactions (793e858)
  • Expose getThreadMembers() pagination options (0d81657)
  • Expose Application Role Connections (37f5e52)
  • Expose Message.roleSubscriptionData (37f5e52)
  • Support resuming voice connection (552dbb0)
  • Supprt message forwarding (c3e3a31)
  • Support bulk banning (577afc8)
  • Restructure Channel classes (737e9f7)
    • Support Text in Stage
    • New GuildTextableChannel class, acts as a "middleman" class with common props/methods for textable guild channels
    • Support adding users to Group Channels (requires OAuth gdm.join scope)
    • Expose getThreadMember()
  • Add Discord locales (f09ba3e)
  • Expose Forum and Media Channels (6084d6a, 0f71727)
  • Support returning member/presence counts in getRESTGuild() (8a2b212)
  • Add AttachmentFlags constant (8a2b212)
  • Expose Role flags (e54cc76)
  • Expose guildAuditLogEntryCreate event (ca2c47c)
  • Expose User avatar decoration (50988d8)
  • Expose Guild Onboarding (9f24d0d)
  • Expose editGuildMFALevel() (3b0dd35)
  • Expose Auto Moderation (dcfee4c, e0c352d)
  • Support getInvite() new parameters (e4edf0b)
  • Update constants (e7a9022, e4edf0b, cc32510)
  • Expose modals (6be96b3)
  • Expose getGuildWidgetImageURL() (52da08c)
  • Support banGuildMember() deleting messages in seconds (bd88d30)
  • Expose messageContent intent (v10) (a331615)
  • New deprecation emit handling (ae5f0f0)

Fixes

  • Fix member/user update on voice state update (bcf7dee, 0c22f54)
  • Fix removal of Voice State when leaving stage channel (f97e0f7)
  • Fix library file direct imports (a3d4d7a, 692521c)
  • Properly parse request errors in DiscordRESTError (805cb6e)
  • Fix User#defaultAvatar calculation (e0ff926)
  • Fix ThreadMember null check (7f07a7c)
  • Fix DMChannel message handling error (171bf7e)
  • Fix OggOpusTransformer not emitting end when file stream finishes (ea0f133)
  • Fix BigInt 0 assignment if deny not in permission data (7f9ef8c)
  • Restructure Channel classes (737e9f7, d026803, f48547b)
    • Fix ThreadMember.guildMember population
    • Fix deleteChannel() return type (will now return deleted channel)
  • Fix nsfw channel handling (cfdcf49)
  • Make createGuild() options parameter optional (43bf5e9)
  • Return undefined on 204 responses in runtime (c3e1b73)
  • Fix Chat Input command name regex validation (bb4b058)
  • Fix editGuildWidget() calling wrong endpoint (6ca661c)
  • Update audit log reason handling (v10) (a331615)
  • Improve handling of sending attachments (65ab87b, 7524a40)

Docs/Typings

  • Add ModalSubmitInteraction to Anyinteraction union (4dbb828)
  • Remove unnecessary typings related to channel restructure (4dbb828)
  • Clarify Interaction's createdAt (cef72ac)
  • Fix flags property editing using AdvancedMessageContentEdit (TS) (b7f9343)
  • Better localization property typings (TS) (f09ba3e)
  • Add missing Attachment properties (TS) (8a2b212)
  • Add missing Role tags properties (e54cc76)
  • Fix ApplicationCommandCreateOptions documentation description and type property (TS) (f259808)
  • Add custom status to editStatus() (9b18e0e)
  • FetchMembersOptions renamed to RequestGuildMembersOptions (e4edf0b)
  • Add linting for docs (e4edf0b, 7cf456b)
  • Sort documentation into alphabetical order (both) (7751f96)
  • Fix Member.communicationDisabledUntil type (TS) (81ca52c)
  • createChannel() typings streamlined (TS) (0790534)
  • Fix Interaction#createMessage() flag type (129501e)
  • Fix Message#edit() parameter type (TS) (6a165cd)
  • Add RawRESTRequest.latency type (TS) (6a165cd)
  • Fix Member.status type (TS) (13c93e0)
  • Add banner to EditSelfOptions (TS) (880483d)

Updated Channel Class Tree

  • Channel
    • DMChannel
    • GroupChannel
    • GuildChannel
      • CategoryChannel
      • MediaChannel
        • ForumChannel
      • GuildTextableChannel
        • TextChannel
          • NewsChannel
        • VoiceChannel
          • StageChannel
        • ThreadChannel
          • PrivateThreadChannel
          • PublicThreadChannel
          • NewsThreadChannel

Only properties/methods relevant to each channel class will be present, all others have been removed without deprecation.

Contributors