Skip to content

Releases: OceanicJS/Oceanic

1.8.0

11 Aug 03:28
7354b30
Compare
Choose a tag to compare

There was an error in the BotActivity type in this version (the type property is missing) - I'm not publishing a full version for that, but you can install 1.8.1-dev.55d2302 until the next full release happens

  • Support custom statuses (ed954cd)
  • Fix automod intents (02fa4da)
  • Refactor collections internally (b0f9f58)
  • Add caching notes to REST methods (b0f9f58)
  • Add limit options for emojis, invites & stickers (b0f9f58)
  • Remove threads from threadGuildMap when guild is deleted (b0f9f58)
  • Fix widget tag property (cb5dbee)
  • Change layout of docs (447bf54, 4b25a7d)
  • Fix partial message updates being mishandled (d675d64)
  • Centralize channel/thread cache location (c2f0669)
  • Add fakeReady option for restMode (f86e79d)
  • Add workaround for pako compression not working (a989529)
  • Refactor interactions types for the 27th time (7c1e9be)
  • Allow specifying file index when uploading files (de03de1)
  • Fix InteractionOptionsWrapper#getMentionable incorrectly claiming to return channels (28a0a93)
  • Fix permissionOverwrites type in EditGuildChannelOptions (6ec3877)
  • Add User#bannerURL (63e7fd3)
  • Make User#tag return user's username rather than display name (751ece4)
  • Add media channels (0860c50, 8854650, 93dec23)

Breaking

  • Rename Permissions.MANAGE_EMOJIS_AND_STICKERS -> Permissions.MANAGE_GUILD_EXPRESSIONS (9664be6)

Upcoming Changes

Later this year, we will be changing the minimum required node version to v18 due to v16 going EOL soon. Currently, the plan is to switch to native fetch when we make that change. 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.

Node v16 goes EOL in September, we will likely be making these changes in dev either late August or early September, and releasing a version with experimental fetch in late September or early October.

1.7.1

22 Jun 19:45
3100d49
Compare
Choose a tag to compare
  • Add a lot more constants (470fc50)
  • Add an option to remove disallowed intents (5d53bee, 09a9362, e8621ff)
  • Add support for new username system (69ed8aa)
  • Fix callback in request handler not being called on non-timeout errors (#72, df5ba47)
  • Add links for global types in docs (84c84b6)
  • Add new guild partial to interactions (ba55ed3)
  • Add note about invite changes (4eb3bce)
  • Add invite flags and GUESTS_ENABLED guild feature (4eb3bce)

1.7.0

27 May 10:27
8c77ea9
Compare
Choose a tag to compare
  • voice messages (1155fa3)
  • fix component interaction messages not coming with a guild_id (c311de9)
  • fix client checks in webhooks (a6b38c1)
  • update dependencies (53db256, e01db96, 09882c7)
  • purge cached channel when channelID update (48acf4f, #60)
  • TextableVoiceChannel (07e68b0)
  • use more specific error classes (206c5c6)
  • fix category channels always being empty (6fed23a)
  • fix automoderation editing ignoring enabled (93ec803)
  • add disableCache options (limits all collections to 0) (18c4df6, 622805c)
  • add getOptions function to InteractionOptionsWrapper (f0c94c8, a35b6b3)
  • include group dms in interactions (fe8cc65)
  • convert purge method to async iterator (aeb60e0, 6feafcf)
  • add tslib dependency (previously required but not listed) (ecc3a90)
  • overhaul channel types (constants & types) (e544d84)
  • allow installing from github (257014c)
  • add onboarding editing & mode (0632c54)
  • revise permission constants (d131c7f)
  • add message author to messageReactionAdd partials (a205bda)
  • list permission requirement for invite events (dd64c41)
  • ThreadableChannel (2c940c2)

Breaking

  • Channel constants/types were reworked, see e544d84 for specific changes
  • AllGuildPermissions constant was removed (d131c7f)
  • GroupChannel was added to the interaction channel types (fe8cc65)

Upcoming Changes

Later this year, we will be changing the minimum required node version to v18 due to v16 going EOL soon. Currently, the plan is to switch to native fetch when we make that change. 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.

Node v16 goes EOL in September, we will likely be making these changes in dev either late August or early September, and releasing a version with experimental fetch in late September or early October.

1.6.0

05 Apr 00:04
43fab76
Compare
Choose a tag to compare
  • Add message property to ModalSubmitInteraction (5d3881b)
  • Fix threads being incorrectly constructed within guilds (9747021, #53)
  • Add a lot more collectionLimits options (a097d71, 77e7b1d)
  • Typescript 5.0 (4696476)
  • Remove attachments from InitialInteractionContent (474057e)
  • Soundboards (af82a58, 5058c30)
  • Add APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE Application flag (f4ea14c)
  • Automod member profiles (912d8da)
  • Onboarding (affbd8f, 5617bda)
  • Make safetyAlertsChannelID editable (94c45d4)
  • Add QUARANTINE_USER auto moderation action type (0053d88)
  • Voice channel effect send event (6c459cd)
  • Rework application class (692053e)
  • Get thread member options (215abd2, dc3372a)
  • Make Guild#ownerID nullable (2b3a8fd)

Breaking

  • Make providing raw data more implementation (internally) friendly. Util#raw -> Util#rawEmbeds, Util#rawMessageComponents, Util#rawModalComponents
  • Split Application class into separate classes for OAuth#getApplication and Miscellaneous#getApplication (692053e)
  • Make Guild#ownerID nullable (2b3a8fd)
  • remove VisibilityTypes (ConnectionVisibilityTypes)
  • remove Intents#GUILD_BANS (Intents#GUILD_MODERATION)
  • remove OAuth#updateRoleConnectionsMetata (OAuth#updateRoleConnectionsMetadata)
  • remove ClientApplication#updateRoleConnectionsMetata (ClientApplication#updateRoleConnectionsMetadata)

1.5.1

09 Mar 06:25
f714694
Compare
Choose a tag to compare
  • Fix #channel not working in many structures (c621aa8, 447d739)

  • Textable stage channels (#42, 39bcbd1)

  • Fix GUILD_CREATEs being missed (b82aee9)

  • Make CreateWebhookOptions#name required (ead01d0)

  • Fix resumes not "ready"-ing client (dee6048)

  • Make the properties of DiscordRestError & DiscordHTTPError non enumerable (6a2f835)

  • Add JSONErrorCodes.CANNOT_DELETE_GUILD_SUBSCRIPTION_INTEGRATION (41182e4)

  • updateRoleConnectionsMetata -> updateRoleConnectionsMetadata (e07b8d4, 47070c0, 66991ee)

  • Add not for files in initial interaction responses (e93b15b, d96de23)

  • Make docs clearer (8e97a84, ccf2240)

  • Add support for raw component and embed input via Util.raw (c675520)

  • Add auto moderation custom_message (b75ca54)

  • Fix role tags updating (796c0b0, d13649d)

  • bon (18aed0f)

  • updateRoleConnectionsMetata will be removed in 1.6.0.

1.5.0

10 Feb 21:50
2638858
Compare
Choose a tag to compare
  • Add support for gif stickers (af1689a)
  • Add support for creating lottie stickers (json, af1689a)
  • Use minimum needed for jpeg matching for maximum compatibility (e4525f1)
  • Update dependencies (2bfef44, f94baaf)
  • Fix handling of invite guilds (2d9a057, 3fee28c, 15ee9b5)
  • Fix examples (bot -> client, bc752ef)
  • Fix duplicate exported types (c1c435f)
  • Fix permission overwrites not being properly removed when deleted (236bd9a)
  • Add audit log entry create event (2c1bc84)
  • Add guildConnections (linked role) role tag (5b55cb1)
  • fix error flattening (1806c28)
  • Handle group dm channel creations (bb4872f)
  • Add MAXIMUM_NUMBER_OF_GROUP_CHANNELS json error code (cf73b0d)
  • Add AnnouncementChannel#follow (47c58a7)
  • Add instagram connection (604f645)
  • Add guild member flags (3f07b2e)
  • Fix role_connections.write scope (2b26afb)
  • Fix updating user role connection metadata (a0e60b7)
  • Add various createWebhook helpers (ae98e2f)
  • Rename VisibilityTypes to ConnectionVisibilityTypes (VisibilityTypes will be removed in 1.6.0) (7d4a9cd)
  • Add compress query param to resumeURL (#40, ceb3b4b)
  • Add SUPPRESS_NOTIFICATIONS message flag (c755fcd)
  • Fix ApplicationCommand#mention (919cdc4)
  • Fix member never being emitted in guildMemberRemove (860b698)

Breaking

  • Removed UserFlags.BUGHUNTER_LEVEL_1, replaced with UserFlags.BUG_HUNTER_LEVEL_1
  • Removed export of OAuth class
  • Removed static and instance method OAuth#constructURL, replaced with static OAuthHelper#constructURL
  • Removed Users#getCurrentUser (rest.users.getCurrentUser), replaced with OAuth#getCurrentUser (rest.oauth.getCurrentUser)

1.4.1

02 Jan 05:23
c507a7f
Compare
Choose a tag to compare
  • Fix Guild Avatar URLs (3578b20, #33)
  • Add RAID_ALERTS_ENABLED feature & associated helpers (03b4b46)
  • Fix file magic checking for JFIF/EXIF JPEG files (433bb21, 371aaf4, 416e9ce)
  • Refactor internal type imports (40d047a)
  • Remove eslint plugin from developers with a stick up their ass, causing 3-6 security vulnerabilities to show up (b5d0956)
  • add a generic to tell the TypedEmitter what events to expect (0d6fa25, #34)

1.4.0

22 Dec 15:17
dc3151b
Compare
Choose a tag to compare
  • Renamed HubType to HubTypes (82e4ff0)
  • Fix some handling of allowedMentions, which broke editing messages by other authors (a8b8962)
  • Properly support stage instances (3a5e223)
  • Rename generic id parameters (docs, 47e511c)
  • Refactor Message#application (a558489)
    • Will never be null (undefined or present)
    • If the application is the current client, update Client#application instead of using provided info exclusively
    • Minor wording changes
  • Add option for X-Super-Properties header (092cc6f)
  • Add support for avatar decorations (d7c3724)
  • Add More Error Codes
    • CANNOT_MIX_SUBSCRIPTION_AND_NON_SUBSCRIPTION_ROLES (47f1718)
    • CANNOT_CONVERT_BETWEEN_PREMIUM_AND_NORMAL_EMOJI (47f1718)
  • Add support for premium subscriber role tags (47f1718)
  • Add support for role connections (56f15f4)
  • Add ROLE_SUBSCRIPTIONS_PURCHASE InviteTargetType (cc8ede8)
  • Add join and mention raid protections features (781866f)
  • Add More Guild Features

Breaking

1.3.2

04 Dec 16:33
8cd8f4d
Compare
Choose a tag to compare
  • Added Features
    • APPLICATION_COMMAND_PERMISSIONS_V2 (ade4cc1)
    • CREATOR_MONETIZABLE_PROVISIONAL (1070b75)
  • Add helpers to Guild for toggling COMMUNITY, DISCOVERABLE, and INVITES_DISABLED (640d15c)
  • Make LocaleMap type partial (ec36bb9)
  • Move constructURL from OAuth to OAuthHelper (OAuth#constructURL will be removed in 1.5.0) (66bdc89)
  • Add BUG_HUNTER_LEVEL_1 user flag (corrected from BUGHUNTER_LEVEL_1, the old one will be removed in 1.5.0) (fa3b76e)
  • Remove outdated notice from InteractionOptionsWrapper#getSubCommand (1ad9554)
  • Make singular component transformation methods (c36aa25)
  • camelCase presences (980ea58)
  • make some internal property accessing "safer" (0b2a96f)
  • defaultForumLayout (310115d)
  • Add more message types (377481c)
  • Add guild_subscription integration type (93d554d)
  • Added Default Message Notification Levels
  • Added Channel Flags
    • SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS (4788317)
    • SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES (4788317)
  • Added Message Flags
    • SHOULD_SHOW_LINK_NOT_DISCORD_WARNING (4788317)
  • Added Audit Log Types
    • CREATOR_MONETIZATION_REQUEST_CREATED
    • CREATOR_MONETIZATION_TERMS_ACCEPTED (4788317)
    • GUILD_HOME_FEATURE_ITEM (4788317)
  • Add HubTypes (4788317)
  • Convert some constants to bit shifting (4788317)
  • Fix Permission Overwrite updates not being handled (b2b4863)

1.3.1

16 Nov 03:09
2c5ef0f
Compare
Choose a tag to compare
  • Add role-connections.write OAuth scope (b485586)
  • disable skipLibCheck (internal, e55fd6c)
  • fix GuildComponent* types (e55fd6c)
  • add disableMemberLimitScaling option (24cce3d)
  • Add GUILD_FEED_REMOVED, ACTIVE_CHANNELS_REMOVED & IS_SPAM ChannelFlags (5fda517)
  • Add tiktok connection (7a4aa9d)
  • Add error code RESOURCE_RATE_LIMITED (69c1142)
  • Add ACTIVE_DEVELOPER user flag (276a99d)
  • Add ACTIVE application flag (276a99d)
  • Add nsfw property on application commands (276a99d, b00db50)
  • Add error code INVALID_REQUEST_ORIGIN (b07656b)
  • Add support for search parameters on OAuth#getCurrentGuilds (b07656b, e37ff4d, 73a0204)
  • Convert internal if statements for if statements to explicit undefined checks (70e2d3d)
  • Fix Guild#leave using incorrect method (d4bcc98)
  • Throw unhandled errors (5f1d760)
  • Add Users#createDM alias (8a055bd)
  • Clarify what "create" means for Channels#createDM (2f9ec20)
  • Add Keyword to TriggerMetadata allow list note (43b54b5)
  • Strictly type locales (a6484fc)
  • Convert ApplicationFlags to bitshifting (62a76b5)
  • Update dependencies (68a8948)