npm discord-api-types 0.19.0

latest releases: 0.37.86, 0.37.86-next.0c46476.1716529402, 0.37.86-next.d273000.1716528433...
2 years ago

0.19.0 (2021-07-19)

Bug Fixes

  • FormattingPatterns: fix StyledTimestamp (#147) (dd12c6a)
  • RESTOAuth2: correct casing of OAuth (#134) (f0b2766)
  • RESTPostAPIWebhookWithTokenJSONBody: add missing components (#152) (ca933ae)
  • fix autopublish CD (#140) (8627c9d)

chore

  • Get up to date again (#156) (86e0736)
  • RESTErrorCodes: correct casing for OAuth (ca6612e)

Code Refactoring

  • Enums: make property casing consistent (#131) (aa5e26d)

Features

  • Stickers: sticker packs, sticker routes, and guild stickers (#145) (4a83629)
  • add stage instance related typings to audit logs (#151) (836e8fb)
  • APIGuild: add nsfw_level (#149) (5256ac7)
  • Channel: add embeds to post / patch (#143) (13d483e)
  • FormattingPatterns: add timestamp (#146) (16eae7e)
  • RESTErrors: add types for rest errors (#122) (7b47fc9)
  • Threads: add typed thread creation (#148) (f393ba5)
  • add typings for stage instance (#144) (e36ef9e)
  • Interactions: components and component interactions (#132) (036bb03)
  • Threads: add default auto archive and minor tweaks (#142) (d2b6276)
  • api v9 and threads (#133) (d1498c3)

BREAKING CHANGES

  • APISelectOption has been renamed to APISelectMenuOption

  • APISelectMenuOption#default is now properly marked as optional

  • Updated OAuth2 Application types

  • APIApplication#owner is now marked as optional, per the docs

  • Correct APIAuditLogChangeKeyNick's key

  • This renames APIAuditLogChangeKeyNick's key from mute to nick

  • Add application_id to APIMessage

  • Correct type of id and user_id in APIThreadMember

  • The type of id and user_id in APIThreadMember are now marked as optional; read the TSDoc for when it's actually optional

  • Correctly version API route in RouteBases

  • This changes the RouteBases.api to be versioned based on the API version you're importing. Make sure to update your code to handle that

  • Added new guild features
    ref: 4d36e53

  • Cleaned up interaction types

  • While this shouldn't be necessary, this is a warning that types for interactions HAVE changed and you may need to update your code. For the most part, the types should be the same, more accurate and strictly typed. You will also see that every type of interaction has a Guild/DM counterpart exported (ex: APIApplicationCommandGuildInteraction vs APIApplicationCommandInteraction, where the former has all the guild properties, while the latter has all properties that depend on context marked as optional).

  • Add message property to MessageComponent interactions

  • RESTErrorCodes: This properly capitalizes certain error codes with the right OAuth capitalization

  • RESTOAuth2: RESTGetAPIOauth2CurrentApplicationResult and RESTGetAPIOauth2CurrentAuthorizationResult have been renamed to RESTGetAPIOAuth2CurrentApplicationResult and RESTGetAPIOAuth2CurrentAuthorizationResult, to correct the casing of OAuth

  • Enums: Enum keys have been normalized, and they are all PascalCased now (for API v8 and above). API v6 did not receive these changes.

Don't miss a new discord-api-types release

NewReleases is sending notifications on new releases.