Skip to content

Releases: OceanicJS/Oceanic

v1.11.2

18 Aug 00:00
85715ca
Compare
Choose a tag to compare
  • Add support for Zstandard compression (88c8ad4)
  • Clone array in purgeMessages to fix issue with skipped messages (a4567f3)
  • Add pollResults to Message (fad8c12)
  • Add http voice states (ad07344)
  • Add support for more detailed members-search route (be511b8)
  • Add getRole method (27ad9b0)
  • Add reason to types for editing guild channels (2704059)

v1.11.1

20 Jul 15:57
b146b3c
Compare
Choose a tag to compare
  • Add ButtonStyles.PREMIUM (05899ff)
  • Add support for consuming one-time entitlements (f66367a, da45a22)
  • Add title to Attachment (b7ee866)
  • Add many missing EntitlementTypes (560c5c9)
  • Add AutoModerationEventTypes.MEMBER_UPDATE (3fba256)
  • Fix channelUpdate event when type changes (ae20187)
  • Fix sending polls in interactions (0f6f29b)
  • Add more useless constants (8644f94)
  • Message Forwarding (dc48df8)
  • Add banner to OAuthGuild (e5fa7c6)
  • Add guild member banners (0135689)
  • Add support for application emojis (763041b)
  • Refactor handling of dispatch events (4322abd, 3e98a3f)

v1.11.0

14 Jun 01:10
14e8016
Compare
Choose a tag to compare
  • Fix messageReactionAdd message author when message is uncached (f221c3f)
  • Add clans (096aa13)
  • Add USE_EXTERNAL_APPS permission (4144e2c)
  • Add ModeratorPermissions constant (236498b)
  • Add PURCHASE_NOTIFICATION message type (1e1590d)
  • Add UndeletableMessageTypes constant (f1970bf)
  • Rename AutoModerationActionTypes.QUARANTINE_USER -> BLOCK_MEMBER_INTERACTION (c3aee92)
  • Rework reaction events [message, reactor, reaction (emoji), burst] -> [message, reactor, reaction (object)] (f73241e)
  • Add Message#call (83c46e0)
  • Add avatar decoration data (b9add28)
  • Add reason to followChannel (1765404)
  • Add error code 40333 (ea1ce7a)
  • publish releases with provenance (ff33e3f)

Breaking

  • Rework reaction events [message, reactor, reaction (emoji), burst] -> [message, reactor, reaction (object)] (f73241e)
  • url parameters are now encoded to mitigate GHSA-5h5v-hw44-f6gg

GHSA-5h5v-hw44-f6gg

v1.10.4

14 May 01:35
a2242af
Compare
Choose a tag to compare
  • Add option to explicitly follow redirects, default disabled (d780332)
  • sanitize route parameters (8bf8ee8)

This release fixes this security vulnerability:
GHSA-5h5v-hw44-f6gg

v1.10.3

09 May 02:03
b7ffd63
Compare
Choose a tag to compare
  • Fix localizations for application command option choices (22ee190)
  • Fix guild bulk ban (f6a26c0)
  • Add option to list disallowed intents upon disconnect (94974f22ae985d10813aba9a6f2f7fe56985712b5)
  • Add nonce & enforceNonce (2f22278)
  • replace interaction metadata user_id with user (7d57822)
  • Add missing application properties (1e1348a)
  • add oauth helper method to client (a5cd742)
  • Fix editMessage not respecting ClientOptions.allowedMentions (c6c9f52, c5b11fe, faebc8b)
  • fix OAuthHelper#addGuildMember (289d02e)
  • Make all private properties use private _ instead of # (991c14c)
  • Fix getMessagesIterator not filtering the last request (1b02c9e)
  • Add role flags (7f69228)
  • fix Webhook.url not using API_URL (5322abf)

v1.10.2

19 Apr 09:35
e86de31
Compare
Choose a tag to compare
  • make webhook edit content nullable (ae2b8fc)
  • Add route to refresh attachment URLs (fc9445a)
  • Remove poll allowed mention hack (b47ece0)
  • Fix polls not working on webhooks (b47ece0)

Notice

The previous version, 1.10.1 contained a hack that didn't send the default allowedMentions when a poll was also being sent. This will result in any message you send with a poll and content not having the correct allowedMentions applied unless you specify them manually. This version fixes that.

v1.10.1

18 Apr 19:16
8b5ba22
Compare
Choose a tag to compare
  • Add name to interaction metadata (76894e9)
  • Fix ALL_NON_PRIVILEGED intent ignoring anything afterwards (c382c1d)
  • convert MIN/MAX sizes into MEDIA_PROXY_SIZES (72035a8)
  • Fix messageReactionAdd message author when message is uncached (#142) (6701803)
  • Update locales (7ff424b)
  • Polls (#141) (99ec267)
  • Make message edit functions' content nullable (9b37972)

v1.10.0

19 Mar 05:01
f6d78c2
Compare
Choose a tag to compare
  • Updated dependencies
  • fix UncachedError on VOICE_STATE_UPDATE (#130, 86a6a7c)
  • reorganize application methods (eccb626)
  • Add iconURL to Application (eccb626)
  • Fix permission issues in resolved private channels (948ee44)
  • Fix editing member flags (3d861d2)
  • Fix ws compression with pako without erlpack (#139, 5ec94d7)
  • Remove regex validation from convertImage (f701104)
    • This caused the function to fail for large files
  • Guild member flags in memberUpdate event (f558ad3)
  • Add bulk banning (9b42887)
  • User installed apps (a36e623)
  • Add banner to cleint user edit method (9d619cc)

Breaking

  • Moved rest.applicationCommands to rest.applications
  • Renamed deleteEntitlement to deleteTestEntitlement
  • Return class in getSKUs
  • Fix exported Application class being OAuthApplication
  • Removed many old JSONErrorCodes names
  • Removed aliases from rest.misc
    • createTestEntitlement - use Applications#createTestEntitlement
    • deleteEntitlement - use Applications#deleteTestEntitlement
    • getApplication - use Applications#getCurrent
    • getClientApplication - use Applications#getClient
    • getEntitlements - use Applications#getEntitlements
    • getSKUs - use Applications#getSKUs
  • Renamed JSONAutocompleteInteraction#channel to channelID
  • Renamed ClientApplication#deleteEntitlement to deleteTestEntitlement
  • Removed Interaction#isModelSubmitInteraction - use isModalSubmitInteraction
  • Removed ModalInteractionResponse type alias - use ModalSubmitInteractionResponse

v1.9.0

20 Jan 02:23
b3cdd63
Compare
Choose a tag to compare
  • premium app subscriptions & entitlements (b6aaca7)
  • Add appliedTags to StartThreadOptions (b0f8b29)
  • Fix missing "custom_message" property on createAutoModerationRule (f196654)
  • Add reply method to interactions (b8912d2)
  • Add typeguards for interactions (8250ffe)
  • fix error in DiscordRESTError when non-object is recieved (903b364)

Breaking

  • Replace undici with native fetch, now requiring at least NodeJS v18.13.0 at minimum (bdd01c0)
  • Add wrapper around ModalSubmit components (b0bc901)
  • Return MessageInteractionResponse class in interaction createMessage/createFollowup
  • Removed Channels#startThreadInThreadOnlyChannl - use Channels#startThreadInThreadOnlyChannel (4e71ef6)
  • Removed Miscellaneous#getNitroStickerPacks - use Miscellaneous#getStickerPacks (4e71ef6)
  • Removed Routes.NITRO_STICKER_PATHS - use Routes.STICKER_PACKS (4e71ef6)

Note the biggest breaking change here, NodeJS v18.13.0 is now the minimum supported version

This requirement has been set due to native fetch now being used over undici.
Backwards compatibility with v16/v17 won't be tested, but may be possible with 16.15.0/17.5.0 or higher with the --experimental-fetch flag, or a polyfill.

1.8.1

25 Sep 09:55
62afa24
Compare
Choose a tag to compare
  • Update error codes
    • Fix USER_MUST_FIRST_BE_VERIFIED (251b257)
  • Add guild inventory settings (8540107)
  • Fix BotActivity missing type (55d2302)
  • Make getMessagesIterator return non-async (8f3be3e)
  • Add permissions
    • SET_VOICE_CHANNEL_STATUS (476a64f)
  • Add audit log types
    • VOICE_CHANNEL_STATUS_CREATE (476a64f)
    • VOICE_CHANNEL_STATUS_DELETE (476a64f)
  • Add message types
    • GUILD_INCIDENT_ALERT_MODE_ENABLED (dc8defc)
    • GUILD_INCIDENT_ALERT_MODE_DISABLED (dc8defc)
    • GUILD_INCIDENT_REPORT_RAID (dc8defc)
    • GUILD_INCIDENT_REPORT_FALSE_ALARM (dc8defc)
    • GUILD_DEADCHAT_REVIVE_PROMPT (dc8defc)
    • GUILD_GAMING_STATS_PROMPT (312a333)
  • Add system flags
    • SUPPRESS_CHANNEL_PROMPT_DEADCHAT (312a333)
  • Add channel flags
  • Even more guild features (7fa9aae, d67b096, b3d619e, 312a333)
  • Add team member roles (b3d619e, fb8891b)
  • Add support for overriding gateway information (469ea02, 6d610bc)
  • Add voice channel statuses (476a64f, 137d4d7, fb65f1e)
  • Add more connection types (7f7b71b)
  • Add burst reactions (8a87287)
  • Add incident actions (dc8defc)
  • Rename Miscellaneous#getNitroStickerPacks to getStickerPacks (6b76a32)
  • Add integrationType to audit log entries (137d4d7)
  • Add ReactionType constant (0c01000)
  • Rename startThreadInThreadOnlyChannl to startThreadInThreadOnlyChannel (9b8291e)
  • Fix Guilds#editEmoji using POST instead of PATCH (08d3811)
  • Fix getMessages mutating array while looping (37fd1df)
  • Add AttachmentFlags constant (312a333)