Skip to content

Releases: OceanicJS/Oceanic

v1.13.0

24 Oct 09:50
1f55dd6

Choose a tag to compare

  • Fix snowflake ID generation using BigInt for accurate timestamp handling (84665ca)
  • Fix editIncidentActions (cbcbaf4)
  • Cleanup/refactoring for rest functions being verbose and mutating options (7dcb70a, fd0cb72)
  • Allow flags in webhook/interaction edit (73cff38)
  • convert client id maps into actual maps (0fe3224)
  • Add colors and collectibles (26fb086)
  • Fix editing scheduled events (3834aea)
  • Remove guild creation and methods requiring guild ownership (02ecdc3)
  • Use isDeepStrictEqual instead of comparing JSON strings (77ef1ef)
  • Add String Select and Label components to modals (9adbd0b)
  • Add APPLICATION_DEAUTHORIZED webhook event (4d74c34)
  • Add text displays and all other Select Menu types to modals (08fc370)
  • Modal Selects: fix and improve get[Structure]Select methods (f24b954)
  • Fix setting role color (6f73239)
  • Add file upload component (e2ecbe2)

Breaking

  • Removed ComponentTypes.TEXT, use ComponentTypes.TEXT_DISPLAY
  • Removed MessageFlags.IS_UIKIT_COMPONENTS, use MessageFlags.IS_COMPONENTS_V2`
  • channelGuildMap, guildShardMap, threadGuildMap, and voiceAdapters are now Maps rather than basic objects
  • Objects passed to rest functions will no longer be directly modified

v1.12.0

23 Apr 15:07
6d4b6e8

Choose a tag to compare

  • Remove support for Zstandard compression (a6ad8ed)
    • It currently does not work, and I cannot get it to work properly
  • Add approximateUserInstallCount to Application (25472f6)
  • Add option to limit ratelimit retry window (85d6538, 20ea410, 62c4d63, e8fbf1e)
  • Add COMPETING to BotOtherActivity (7104364)
  • Add soundboard support (4ff198b)
  • Fix typo in Routes.GUILD_APPLICATION_COMMAND_PERMISSIONS (9b252f0)
  • Make Entitlement startsAt/endsAt nullable (7646465)
  • update message interaction metadata (86bfe19)
  • Add subscriptions (dee089f)
  • entry point commands (1a26479)
  • Add poll to EditInteractionContent (9bc5d6d)
  • Add support for interaction callback response body (f337065, 69db889)
  • Add get activity instance route (6ddf7e2)
  • Add a few missing application properties (93638b7)
  • add bluesky & mastodon connections (16e80b5)
  • Add embed flags & missing attachment properties (c3a8425)
  • allow files on initial interaction response (49235c6)
  • Components V2 (382129b)
  • Set allowed mentions on edit even if content is empty or null (6564cdb)
  • Add invite types (789fbe7)
  • Add attachmentSizeLimit to interactions (3fff674)
  • update dependencies

Breaking

  • Removed AutoModerationActionTypes.QUARANTINE_USER, use AutoModerationActionTypes.BLOCK_MEMBER_INTERACTION
  • Removed User.avatarDecoration, use User.avatarDecorationData.asset
  • The default of RequestOptions.maxRatelimitRetryWindow has changed from Infinity to 30,000 (30 seconds)
  • Removed Routes.USER_AVATAR_DECORATION, use Routes.AVATAR_DECORATION

Components V2

Components V2 have been released. See Discord's docs and our example for how to use them.

v1.11.2

18 Aug 00:00
85715ca

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

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

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

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

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

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

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

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