npm discord-api-types 0.27.0

latest releases: 0.37.105-next.df0d390.1731437421, 0.37.105-next.7fa0e15.1731437341, 0.37.105-next.092cf01.1731437256...
2 years ago

0.27.0 (2022-02-10)

Bug Fixes

  • GatewayThreadCreateDispatchData: newly_created is optional, and true when present (#312) (87b9b08)

Code Refactoring

Features

  • APIGuildPreview: add stickers (#279) (310c68f)
  • APIInteraction: add locale props to interactions (#273) (03b8d3f)
  • APIMessageInteraction: add member field (#299) (80ed7ba)
  • APIScheduledEvent: add image prop (#303) (663c4e9)
  • APIThreadMetadata: add create_timestamp field (#301) (d95d956)
  • ApplicationCommand: attachment application command option type (#272) (71c4e6a)
  • GatewayThreadCreateDispatch: Add newly_created field (#311) (7e54215)
  • Interactions: add modal and text input interactions (#243) (bf0f66b)
  • Locales: add locale string enum (#297) (b07d5a0)
  • MessageFlags: add FailedToMentionSomeRolesInThread (#280) (76588d9)
  • RESTPostAPIChannelMessage, RESTPostAPIWebhookMessage: add flags for creation (#300) (4194bd9)
  • RESTJSONErrorCodes: add error 30042 (#305) (9c2b185)
  • RESTJSONErrorCodes: add error 30046 (#304) (56d3975)
  • RESTJSONErrorCodes: add error 40004 (#314) (269a75c)
  • RESTJSONErrorCodes: add error 50068 (#302) (7655e20)
  • RESTJSONErrorCodes: add error code 50086 (#286) (51fb37c)
  • RESTPatchAPIGuildMember: add communication_disabled_until field (#289) (5056b0f)
  • RESTPatchAPIGuildMember: add modify current member and deprecate nick route (#262) (9a982ff)
  • RouteBases: add base for guild scheduled events (#293) (83f29b6)
  • UserFlags: add Spammer flag (#294) (03f12d7)

types

  • Add tagged type unions for channel types (#200) (2c1fbda)

BREAKING CHANGES

  • Interactions: APIBaseMessageComponent was renamed to APIBaseComponent

  • UserFlags: The None user flag is bye-bye (although I doubt anyone is using it)

  • All of the channel types are now split based on their type. As such, you will need to assert the type (either by checking it with the enum or by casting the data as the correct channel) before accessing data.
    If you encounter any missing properties due to this, please open an issue! This is a big change, and we hope nothing is missing

  • ActivityType: Game was renamed to Playing

New Contributors

Full Changelog: 0.26.1...0.27.0

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

NewReleases is sending notifications on new releases.