Skip to content

Latest commit

 

History

History
1564 lines (922 loc) · 122 KB

CHANGELOG.md

File metadata and controls

1564 lines (922 loc) · 122 KB

0.37.81 (2024-04-22)

Bug Fixes

  • Polls: correct APIPollAnswer properties (#962) (308d7d4)

0.37.80 (2024-04-22)

Features

0.37.79 (2024-04-04)

Features

  • ConnectionService: add bungie connection (#907) (22b5f47)

0.37.78 (2024-04-01)

Features

0.37.77 (2024-03-28)

Features

  • APIAuditLogChange: add APIAuditLogChangeKeySystemChannelFlags (#933) (47c9ad0)

0.37.76 (2024-03-21)

0.37.75 (2024-03-18)

0.37.74 (2024-03-14)

0.37.73 (2024-03-07)

0.37.72 (2024-03-07)

0.37.71 (2024-02-26)

Features

  • add initial support for super reactions (#744) (150dc46)

0.37.70 (2024-02-15)

Features

  • RESTPostAPIChannelMessageJSONBody: add enforce_nonce (#874) (9564941)

0.37.69 (2024-02-08)

Features

0.37.68 (2024-02-05)

Bug Fixes

  • CDNRoutes: fix store page wrong extension (#867) (6f541d5)
  • CDNRoutes: make format optional and default to png (#869) (55efcca)

0.37.67 (2023-12-28)

Bug Fixes

  • GatewayThreadDispatch: properly type thread create/update/delete dispatches (#861) (819d852)

0.37.66 (2023-12-07)

Features

  • RESTPostAPIWebhookWithTokenJSONBody: add applied_tags (#855) (b4226bb)

0.37.65 (2023-11-23)

Bug Fixes

  • TextChannelType: Remove forum and media channels (#849) (9574881)

0.37.64 (2023-11-20)

Features

  • PermissionFlagsBits: split up expressions and events perms (#790) (ca05ee5)

0.37.63 (2023-11-09)

Bug Fixes

  • RESTPutAPIGuildOnboardingJSONBody: optional keys and flattened emoji (#839) (a8efb19)

0.37.62 (2023-10-30)

Features

  • RESTJSONErrorCodes: add 40074 and 50057 (#844) (28ed370)

0.37.61 (2023-10-23)

Features

0.37.60 (2023-10-05)

Features

  • Application patch and new properties (#810) (17f42e0)

0.37.59 (2023-10-02)

Features

  • RESTPostAPIStageInstanceJSONBody: add guild_scheduled_event_id (#656) (ecef5b4)

0.37.58 (2023-09-25)

Bug Fixes

  • RESTPatchAPIChannelJSONBody: add missing applied_tags field (#828) (a4cdbbf)

Features

0.37.57 (2023-09-21)

Features

  • ConnectionService: support twitter rebrand update (#819) (32ba5ce)

0.37.56 (2023-08-31)

Bug Fixes

  • RESTPostAPIChannelMessageJSONBody: number for attachment ids (#811) (1eb0161)
  • standard stickers are now free (#789) (018d889)

Features

0.37.55 (2023-08-24)

0.37.54 (2023-08-17)

Bug Fixes

Features

0.37.53 (2023-08-14)

Features

  • GatewayActivityUpdateData: allow sending state (#801) (e095e09)

0.37.52 (2023-08-07)

Bug Fixes

  • RESTPatchAPIChannelJSONBody: available_tags requires name only (#802) (5261124)

0.37.51 (2023-07-31)

Bug Fixes

  • Presence: cannot receive invisible status (#799) (1071d24)

0.37.50 (2023-07-20)

Features

  • onboarding updates, mode field, and error codes (#773) (773556a)

0.37.49 (2023-07-17)

Features

  • APIApplication: approx guild count and get self application endpoint (#728) (874f135)
  • APIAttachment: add flags (#783) (7f9a7e5)
  • APIRole: role flags (#782) (488b5ad)
  • APIUser: add avatar decorations (#664) (f556455)
  • AuditLogEvent: Add creator monetisation events (#787) (47f78bc)
  • GatewayMessageReactionAddDispatch: add message_author_id (#754) (82d7024)

0.37.48 (2023-07-10)

0.37.47 (2023-06-29)

Features

  • Guild: add join raid and mention raid protection (#677) (844ad56)

0.37.46 (2023-06-19)

Features

0.37.45 (2023-06-15)

0.37.44 (2023-06-15)

Features

0.37.43 (2023-05-29)

Features

0.37.42 (2023-05-08)

Bug Fixes

  • allow sending empty choices with autocomplete: true (#762) (0e6b19d)

0.37.41 (2023-05-01)

Bug Fixes

  • GatewayGuildMembersChunkDispatchData: Omit guild_id for presences (#761) (5079b16)
  • types: move types condition to the front (#763) (9dce6ed)

0.37.40 (2023-04-24)

Features

0.37.39 (2023-04-17)

Bug Fixes

  • RESTPostAPIChannelMessagesThreadsJSONBody: mark auto_archive_duration as optional (ca6a95d)

Features

  • APIGuild: add max_stage_video_channel_users (#550) (9a66d21)

0.37.38 (2023-04-10)

Features

0.37.37 (2023-03-23)

Bug Fixes

  • add missing RESTGetAPIWebhookWithTokenQuery (#735) (2a78a51)

Features

  • add various new flags (#733) (4723d29)
  • RESTGetAPICurrentUserGuildsQuery: add with_counts (#641) (0cd9b0d)
  • RESTPostAPIGuildChannelJSONBody: add default_thread_rate_limit_per_user (#730) (8f9370d)

0.37.36 (2023-03-13)

Features

  • AutoModeration: add custom_message field support (#727) (0d47c69)

0.37.35 (2023-02-17)

Bug Fixes

0.37.34 (2023-02-16)

Bug Fixes

  • GuildSystemChannelFlags: "suppress" typo (#719) (8d37bc5)

Features

0.37.33 (2023-02-11)

Bug Fixes

  • GatewayDispatchPayload: add missing GuildAuditLogEntry (#715) (602c16e)

0.37.32 (2023-02-09)

Features

  • MessageType: add SuppressNotifications (#710) (b14aea6)

0.37.31 (2023-01-30)

0.37.30 (2023-01-26)

Features

  • APIGuildMember: add support for guild member flags (#700) (e902671)
  • GatewayDispatchEvents: add GuildAuditLogEntryCreate (#692) (31ca234)

0.37.29 (2023-01-23)

0.37.28 (2023-01-12)

Bug Fixes

  • GuildIntegration: enabled and user are present on bots (#660) (b10e9bb)

Features

0.37.27 (2023-01-09)

Features

0.37.26 (2023-01-05)

Features

  • add RESTJSONErrorCode 40062 and RESTRateLimit.code (#620) (4a25caf)
  • RESTGetAPIAuditLogQuery: support after (#682) (bb2ef84)
  • RESTJSONErrorCodes: add error 30058 (#676) (921bffd)
  • RESTJSONErrorCodes: add error 50067 (#640) (6e4a611)

0.37.25 (2022-12-29)

0.37.24 (2022-12-19)

Bug Fixes

  • APIApplicationRoleConnection: metadata values can be numbers (#673) (8df9f14)

0.37.23 (2022-12-15)

Bug Fixes

  • APIChannel: correctly type present properties based on channel type (#669) (2a5413d)
  • Interactions: make app_permissions required (#652) (89bc0f4)

Features

0.37.22 (2022-12-12)

Bug Fixes

  • APIChannel: correctly type name based on channel type (#666) (995126e)

0.37.21 (2022-12-05)

0.37.20 (2022-11-24)

0.37.19 (2022-11-21)

Bug Fixes

  • APIGuildChannel: make position of guild channel non optional (#647) (9d72e82)
  • channel: add missing type aliases (#648) (2695dad)

Features

  • GuildFeatures: Add APPLICATION_COMMAND_PERMISSIONS_V2 (#646) (a1869a6)

0.37.18 (2022-11-14)

Features

0.37.17 (2022-11-07)

Features

  • APIAutoMod: add support for regex matching (#603) (88a60f7)

0.37.16 (2022-10-31)

Bug Fixes

  • docs: update gateway documentation links (#628) (7040d9b)
  • export RESTGetAPIVoiceRegionsResult with the correct name (#627) (69aa717)
  • UserFlags: hardcode the value of Quarantined (#624) (5091f6e)

0.37.15 (2022-10-27)

Bug Fixes

  • default_thread_rate_limit_per_user is only for forum channels (#596) (88ce291)
  • add missing gateway dispatch payloads to gateway event union (#619) (348dd41)
  • APIGuild: change type of afk_timeout to allowed values (#590) (aaa57b4)

Features

0.37.14 (2022-10-15)

Bug Fixes

  • APIAutoModeration: export v10 json payloads and correct route types (#608) (bce0795)

Features

0.37.13 (2022-10-14)

Features

  • APIAutoModeration: add support for auto moderation (#418) (b216f7a)

0.37.12 (2022-10-06)

0.37.11 (2022-09-26)

Features

  • APIGuildForumChannel: add default_sort_order (#589) (143b003)
  • APIGuildForumChannel: update and add missing features (#575) (0f118d3)

0.37.10 (2022-09-15)

Features

0.37.9 (2022-09-12)

Features

  • ConnectionService: add new connections (#548) (afd3b55)

0.37.8 (2022-09-08)

Features

0.37.7 (2022-09-05)

Bug Fixes

  • ChannelType: bring back old names (b08f2e3)

0.37.6 (2022-09-05)

Bug Fixes

  • APIModalSubmission: components is not optional (#574) (f69b586)
  • GuildChannelType: add missing GuildCategory type (#579) (815c68f)
  • RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody: channel_id is optional (#547) (b7b855b)

Features

  • APIGuildIntegration: add scopes (#563) (73d15dd)
  • ApplicationFlags: add ApplicationCommandBadge (#537) (48f0f56)
  • RESTPutAPIGuildBanJSONBody: add delete_message_seconds (#534) (4e362d5)

0.37.5 (2022-08-25)

Features

  • FormattingPatterns: add ApplicationCommand (#525) (0098889)

0.37.4 (2022-08-22)

Features

  • add common JSON error types (#568) (956f289)
  • ApplicationCommand: export base chat input types (#569) (248484e)

0.37.3 (2022-08-18)

Features

0.37.2 (2022-08-11)

Bug Fixes

  • GatewayGuildMembersChunkDispatchData: make chunk pagination properties mandatory (#558) (0e03e39)
  • GatewayRequestGuildMembersData: limit being required with user_ids (#559) (dc3d5df)
  • RESTGetAPIChannelUsersThreadsArchivedResult: add has_more missing field (#543) (796f6d8)

Features

  • add search that might or might not work (f8a9c8b)
  • APIVoiceChannel: support text in voice, properties last_message_id and rate_limit_per_user (#544) (4488d8f)
  • GatewayReadyDispatchData: add resume_gateway_url (#552) (9a50367)

0.37.1 (2022-08-04)

0.37.0 (2022-07-28)

Code Refactoring

  • RESTJSONErrorCodes: use MaximumThreadParticipantsReached instead in error code 30033 (#540) (cecf17b)

BREAKING CHANGES

  • RESTJSONErrorCodes: MaximumThreadParticipants was renamed to MaximumThreadParticipantsReached for consistency with the rest of the codes

0.36.3 (2022-07-21)

Features

  • APIConnection: add ConnectionService to type (#491) (4577ac2)
  • APIThreadChannel: add fields about new message counter capability (#532) (2b53b20)
  • GatewayGuildCreateDispatchData: add missing unavailable (#504) (59e2477)
  • RESTJSONErrorCodes: add ApplicationNotYetAvailable (#507) (09a1141)
  • RESTJSONErrorCodes: add error 30034 (#530) (0a2e778)
  • RESTJSONErrorCodes: add error 50132 (#505) (907d88a)
  • RESTJSONErrorCodes: add error 50146 (#527) (e78de0c)
  • RESTJSONErrorCodes: add new errors (#506) (65b672e)

0.36.2 (2022-07-14)

Features

  • RESTJSONErrorCodes: add error 30032 (#521) (f2c3451)
  • RESTPutAPIApplicationGuildCommandsJSONBody: add missing id (#522) (4af2ea9)

0.36.1 (2022-07-04)

Features

  • APIApplicationCommandStringOption: add min_length and max_length (#513) (2cade98)

0.36.0 (2022-06-30)

Features

BREAKING CHANGES

  • MessageType: The following message types have been renamed:
  • GuildMemberJoin -> UserJoin
  • UserPremiumGuildSubscription -> GuildBoost
  • UserPremiumGuildSubscriptionTier1 -> GuildBoostTier1
  • UserPremiumGuildSubscriptionTier2 -> GuildBoostTier2
  • UserPremiumGuildSubscriptionTier3 -> GuildBoostTier3

0.35.0 (2022-06-23)

Code Refactoring

  • GatewayIdentifyProperties: remove $ prefix from keys (#493) (3b10c60)

Features

BREAKING CHANGES

  • GatewayIdentifyProperties: The fields for identify no longer use the $ prefix for the values.

0.34.0 (2022-06-13)

Code Refactoring

  • separate MESSAGE_CREATE fields from APIMessage object (#434) (0bb2204)

Features

  • add guild mfa endpoint and error 50017 (#476) (292c6b5)
  • RESTJSONErrorCodes: add 220003 error (#466) (20653b3)

BREAKING CHANGES

  • Certain fields that come only through the gateway are now correctly typed as such

0.33.5 (2022-06-07)

Bug Fixes

  • GatewayGuildCreateDispatch: add missing GatewayGuildCreateDispatch (#477) (d268e0b)
  • RESTPostAPIWebhookWithTokenJSONBody: thread_name should be optional (#479) (eff8892)

Features

0.33.4 (2022-06-06)

Features

  • RESTPostAPIWebhookWithTokenJSONBody: add thread_name (#463) (8e5f07e)

0.33.3 (2022-06-04)

Bug Fixes

  • AddUndefinedToPossiblyUndefinedProperties: recurse down objects (#471) (43c372d)

0.33.2 (2022-06-01)

Bug Fixes

  • docs-site: website link colors (#457) (51e664d)
  • GatewayGuildCreateDispatch: add extra fields that were missing (#458) (15fcd1b)
  • RestPostAPIBaseApplicationJSONBody: make default_member_permissions optional (#460) (6a813be)

0.33.1 (2022-05-26)

Bug Fixes

  • RESTPostAPIApplicationGuildCommands: correct types due to unions (#447) (6d85ad6)

Features

  • RESTJSONErrorCodes: add error 50600 (#444) (5ef49f4)
  • RESTPostAPIGuildChannels: update post body fields (#419) (748db34)

0.33.0 (2022-05-16)

Code Refactoring

  • GuildFeature: thread archive durations are no longer boost locked (#412) (1737ade)
  • separate GUILD_CREATE fields from APIGuild object (#423) (17f5caa)

Features

  • add support for application command permissions v2 (#415) (d3163ca)
  • OAuth2Scopes: add new OAuth2 scopes (#435) (8f16f45)
  • rest: add missing guild routes results (#438) (1afce87)

BREAKING CHANGES

  • APIGuild now correctly shows just the properties that are obtainable through rest/GUILD_UPDATE, while the extra fields have been moved to GatewayGuildCreateDispatchData to correctly represent the data received
  • GuildFeature: SevenDayThreadArchive and ThreeDayThreadArchive have been removed as they are no longer valid

0.32.1 (2022-05-05)

Features

  • RESTJSONErrorCodes: add error 50080 (#408) (43cfbcb)
  • RESTPostAPIGuildForumThreads: add message field (#416) (a28c824)

0.32.0 (2022-04-25)

Bug Fixes

  • add position property to create channel options (#409) (3fe53ce)

Code Refactoring

  • APIGuildIntegration: make enabled optional (#406) (1212eb9)

BREAKING CHANGES

  • APIGuildIntegration: enabled is now properly marked as optional

0.31.2 (2022-04-18)

Features

  • RESTPostAPIGuildChannelJSONBody: add default_auto_archive prop (#400) (6a192b1)

0.31.1 (2022-04-11)

Features

0.31.0 (2022-04-04)

Code Refactoring

Features

  • add RESTGetAPIGuildBansQuery (#391) (b1bf7bf)
  • APIApplication: app authorization links and tags (#239) (93eab11)
  • APIApplicationCommand: add missing localization props (#383) (9c12718)
  • APIAuditLogChange: add APIAuditLogChangeKeyImageHash (#379) (f532002)
  • GuildFeatures: add animated banners (#219) (c23f2ac)
  • RESTPostAPIStageInstanceJSONBody: add send_start_notification (#378) (b764e8d)

BREAKING CHANGES

  • The deprecated summary field has been removed
  • Store channels have been removed, alongside their types
  • APIGroupDMChannel: The name field is now also nullable for Group DM Channels

0.30.0 (2022-03-24)

Bug Fixes

  • APIGuildIntegrationType: correct name of type (#366) (fa740eb)

Features

  • APIApplicationCommand: add command localization (#370) (f702988)

Reverts

  • fix(GatewayVoiceState): some fields are optional instead of nullable (#367) (e822e45)

BREAKING CHANGES

  • APIGuildIntegrationType: APIGuildInteractionType is now correctly named APIGuildIntegrationType

0.29.0 (2022-03-10)

Bug Fixes

  • GatewayVoiceState: some fields are optional instead of nullable (#345) (fddff21)
  • RESTJSONErrorCodes: typo in error 30046 (#362) (854aa36)

Code Refactoring

  • APIGuildScheduledEventBase: make description nullable (#359) (e5710d0)
  • make things optional and nullable where applicable (#361) (10fdeaa)
  • RESTJSONErrorCodes: update error 50008 key (#338) (9a57848)

Features

  • APIInviteGuild: add boost count (#323) (cb92843)
  • APIStageInstance: add guild_scheduled_event_id (#350) (d06d2d6)
  • RESTJSONErrorCodes: add error 10065 (#336) (e8127b8)

BREAKING CHANGES

  • RESTJSONErrorCodes: MaximumNumberOfEditsToMessagesOlderThanOneHourReached is no longer mistyped as MaxmimumNumberOfEditsToMessagesOlderThanOneHourReached
  • APIGuildScheduledEventBase: The type for description can also be null, not just optional
  • RESTJSONErrorCodes: The error code 50008 has been renamed from CannotSendMessagesInVoiceChannel to CannotSendMessagesInNonTextChannel
  • The deprecated asset field for stickers is correctly marked as optional now. The image field for Guild Scheduled Events is now correctly typed as optional.
  • GatewayVoiceState: channel_id and request_to_speak_timestamp are correctly typed as optional, not nullable now.

0.28.0 (2022-03-07)

Code Refactoring

  • PermissionFlagsBits: rename StartEmbeddedActivities to UseEmbeddedActivities (#342) (3e3acb5)

Features

  • add support for TS module: NodeNext (#356) (e9ee696)
  • MessageComponentInteraction: export specific interaction aliases (#353) (3503a4f)
  • Utils: add more typeguard functions to determine the interaction types (#355) (dec7717)

BREAKING CHANGES

  • PermissionFlagsBits: The StartEmbeddedActivities permission flag has been renamed to UseEmbeddedActivities

0.27.3 (2022-02-24)

Bug Fixes

  • APIApplicationCommandAutocompleteInteraction: make options field required for v10 (PR #332 redo) (#339) (8d432f2)

0.27.2 (2022-02-17)

Bug Fixes

  • APIApplicationCommandAutocompleteInteraction: make options field required (#332) (5396daf)
  • APIInteractionResponse: add APIModalInteractionResponse to union (#333) (a8f19e6)

Features

0.27.1 (2022-02-14)

Bug Fixes

  • APIInteraction: add modal submit interaction & make data required in APIModalSubmit (#321) (f88727b)
  • APIInteractions: export ApplicationCommandAutocomplete (#309) (5056da5)
  • CI: skip pull request checks for runs that don't include the token (#327) (0ad06fc)
  • make data required in autocomplete interaction and add separate dm/guild types (#322) (7abeb2e)

Features

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

0.26.1 (2022-01-02)

Bug Fixes

  • APIApplicationCommandOption: correct type for integer and number (#284) (fe1f531)

Features

  • APIAuditLogChangeData: Add communication_disabled_until (#281) (0cf51ab)
  • APIGuildScheduledEvent: add more precise types for stage instance/voice/external events (#278) (751aee6)
  • ApplicationFlags: add embedded application flags (#277) (9f4f59c)

0.26.0 (2021-12-24)

Bug Fixes

  • APIInvite: channel can be null (#182) (c67d426)
  • GatewayStageInstance: Stage Instance dispatches not included in GatewayDispatchPayload (#267) (46db72d)
  • NonDispatchPayload: t & s fields are always null on non-dispatch payloads (#259) (315ce35)
  • only a partial object is needed when updating attachments (#263) (7ab780b)
  • StickerPack: Optional banner_asset_id (#270) (7eee39d)

Features

  • Add API error code 50055 (#256) (b01716b)
  • Add API error code 50109 (#268) (bfc5e46)
  • add support for user guild member read oauth2 scope and route (#254) (e9d02a1)
  • APIAuditLog: add guild_scheduled_events prop (#251) (c7efcd5)
  • APIGuildMember: add guild timeouts (#235) (0bbc972)
  • GatewayThreadMemberUpdateDispatchData: add guild_id extra field (#266) (2c72242)
  • RESTJSONErrorCodes: add error 20029 (#257) (9e619fc)
  • bring in support for TS 4.5's exactOptionalPropertyTypes (#275) (c20e5ae)

Cleanups

  • Make application command option union easier to use (#250) (8bbb819)
  • ChatInputCommandOptions: cleanup chat input options (#274) (7fe78ce)

BREAKING CHANGES

  • StickerPack: banner_asset_id is now optional. Reference PR: discord/discord-api-docs#4245
  • APIInvite: this marks the channel property of invites as possibly null
  • ChatInputCommandOptions: A lot of the options were renamed and split up to clean up internal code. All option interfaces that ended in a plural (*Options) have had their pluralization removed (*Option now). APIApplicationCommandInteractionDataOptionWithValues has been renamed to APIApplicationCommandInteractionDataBasicOption, and every *InteractionDataOptions{Type} interfaces have been renamed to *InteractionData{Type}Option (i.e.: ApplicationCommandInteractionDataOptionString -> APIApplicationCommandInteractionDataStringOption).

0.25.2 (2021-11-30)

Bug Fixes

  • APISelectMenuComponent: options property is required (#248) (51dee6e)

Features

0.25.1 (2021-11-30)

Bug Fixes

  • deno: faulty import paths for guild scheduled events (#245) (44c0f05)

0.25.0 (2021-11-29)

Bug Fixes

  • APIApplicationCommandOption: remove default property (#242) (faa8bf4)
  • correct types for autocomplete interaction data (#234) (691abb5)
  • correct types for REST attachments (#238) (fa54b9d)
  • make subcommand options optional (#241) (7379a34)

Code Refactoring

Features

  • add guild scheduled event (#186) (d333962)
  • RESTPostAPIChannelThreadsJSONBody: add rate_limit_per_user (#237) (1e52e0c)
  • add max/min option for number-based options (#221) (bc1d03e)
  • add maze api error (#228) (7a15c97)
  • ActivityFlags: add new flags (#207) (0f51d8e)
  • ApplicationFlags: add message content intent flags (#226) (d189e36)
  • Attachments: multi uploads and alt text (#223) (fdf133e)
  • GuildSystemChannelFlags: add suppress member join sticker replies flag (#222) (4021dae)
  • Interactions: add autocomplete api types (#205) (3b9320d)
  • UserFlags: add BOT_HTTP_INTERACTIONS flag (#212) (a015f96)

BREAKING CHANGES

  • UserFlags: All user flags now follow the internal name, with descriptions added for what they represent. This means you'll have to do some minor renaming in your code if you check for flags.
  • APIApplicationCommandOption: If you were using the default property for ApplicationCommandOptions, it has been removed, as Discord wasn't even taking it into account anymore.
  • The types for autocomplete interactions have been corrected.

0.24.0 (2021-10-16)

Bug Fixes

  • APISelectMenuComponent: make options field optional (#209) (0c592a0)

Code Refactoring

  • APIVoiceRegion: removed vip property (#214) (7db6953)

Features

  • APIApplicationCommand: add channel_types field to channel options (#198) (77396b5)
  • APIAttachment: add ephemeral field (#199) (2aee879)
  • APIGuildMember: add per guild avatars (#208) (0331518)
  • APIRole: add role icons (#204) (1076822)
  • InteractionResolvedChannels: add parent_id and thread_metadata fields to resolved channels (#210) (64e4e52)
  • PermissionFlagBits: update thread permissions (#181) (68d97ae)
  • PermissionFlagsBits: add StartEmbeddedActivities (#197) (4bbe1ea)
  • RESTJSONErrorCodes: add error 50101 (#202) (b453d75)
  • Routes: add missing OAuth2 routes (#218) (9dd3446)

BREAKING CHANGES

  • APIVoiceRegion: The vip property has been removed.

0.23.1 (2021-09-08)

Bug Fixes

  • RESTPostAPIBaseApplicationCommandsJSONBody: omit version field (#195) (43cc755)

0.23.0 (2021-09-07)

Bug Fixes

  • AuditLog: correct nickname type (#189) (64937e2)
  • Embed: correct certain optional types as being required (#192) (e628f0f)
  • import causing error 404 on deno (#178) (8fcd0f2)

chore

  • Gateway: remove APPLICATION_COMMAND_* events (#191) (d590caf)

Features

  • APIApplicationCommand: add version field (#193) (ecbed18)
  • APIUser: add banner and accent_color (#183) (b07b903)
  • Interactions: context menu items (#166) (fdc1c1a)
  • JSONErrorCodes: add 160002 (#190) (8b49887)
  • MessageType: add ContextMenuCommand and rename ApplicationCommand to ChatInputCommand (#180) (0024823)
  • Threads: add invitable (#185) (b6babf2)

BREAKING CHANGES

  • Gateway: The three Application Command events have been removed
  • Embed:
    • APIEmbedAuthor#name is required, not optional
    • APIEmbedThumbnail#url is required, not optional
    • APIEmbedImage#url is required, not optional

0.22.0 (2021-07-31)

Bug Fixes

  • Gateway: thread list sync now sends an array as documented (#174) (a93235c)
  • MessageComponent: correct type for emoji (#176) (b75b05f)

chore

  • ApplicationCommandOptionType: casing changes for subcommands (#175) (f93b6be)

Features

BREAKING CHANGES

  • ApplicationCommandOptionType: This renames SubCommand to Subcommand, and SubCommandGroup to SubcommandGroup
  • Routes#channelJoinedArchivedThreads is now spelled right (from Routes#channelJoinedArhivedThreads)
  • Gateway: GatewayThreadListSync#members is now an array of APIThreadMember instead of a Record of GatewayThreadListSyncMember

0.21.0 (2021-07-30)

Bug Fixes

Features

  • ApplicationCommandOptionType: add Number (10) (#153) (6f15e53)
  • Globals: revert template bigint type to string type (#171) (f299507)

Reverts

  • fix: change resolved index types to string (#172) (647905e)

BREAKING CHANGES

  • Globals: The type for Snowflake and Permissions is reverted from the ${bigint} template type back to a normal string type

0.20.2 (2021-07-21)

Bug Fixes

  • APIInteraction: bring back Ping type (#164) (ff75eb3)

0.20.1 (2021-07-20)

Features

  • Interactions: add interaction response and followup route (#162) (f99f07f)

0.20.0 (2021-07-20)

chore

Code Refactoring

Features

  • PermissionFlagsBits: add UseExternalStickers (1n << 37n) (#154) (5dccc6b)
  • RESTJSONErrorCodes: add sticker errors (#155) (8dbeca0)

BREAKING CHANGES

  • GatewayGuildMemberUpdateDispatchData#joined_at is properly marked as nullable now
  • In v9, thread_id was incorrectly placed in RESTPostAPIWebhookWithTokenJSONBody and has been moved to RESTPostAPIWebhookWithTokenQuery
  • All types that contained the ID word in them have had it renamed to Id (ex: APIButtonComponentWithCustomID is now APIButtonComponentWithCustomId)
  • The isStyledButton util has been renamed to isInteractionButton

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: https://github.com/discordjs/discord-api-types/pull/156/commits/4d36e533cffecbcce13e968a7803e5a68e021106

  • 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.

0.18.1 (2021-05-03)

Bug Fixes

Features

  • add new interfaces for interaction-related structures (#129) (bd638b9)
  • APIInvite: add expires_at field and with_expiration param (#127) (82ca0ce)
  • ApplicationCommandOptionType: add MENTIONABLE (9) (#126) (91afb0b)

0.18.0 (2021-04-18)

Bug Fixes

Code Refactoring

  • Invite: rename InviteTargetUserType to InviteTargetType (#124) (bc9ab45)

BREAKING CHANGES

0.17.0 (2021-04-17)

Bug Fixes

Code Refactoring

Features

BREAKING CHANGES

0.16.0 (2021-04-14)

Features

  • Guild: add nsfw property (#116) (21b572b)
  • RESTJSONErrorCode: add UnknownInteraction error code (#115) (ced37d0)

docs

  • Routes: add GET routes to webhookMessages (#114) (6451679)

BREAKING CHANGES

  • Routes: possibly a breaking change due to the fact that the messageID is now strictly typed as a Snowflake or @me

0.15.1 (2021-04-12)

Bug Fixes

  • TypeScript: imports not working in TypeScript (4738c33)

0.15.0 (2021-04-11)

Bug Fixes

  • APIApplicationCommand: default_permission (#111) (9420c3e)
  • Scripts: await in versions script, log any errors from deno one (9113eb1)

BREAKING CHANGES

  • APIApplicationCommand: This renames the default_permissions property to default_permission, the correct spelling.

0.14.0 (2021-04-11)

Bug Fixes

  • APIMessage: correct type for application (ed2cbe8)
  • GatewayGuildMemberUpdateDispatchData: correct types (14f14e2)
  • GatewayPresenceUpdateData: activities may not be null (bb3cb04)
  • GatewayVoiceServerUpdateDispatchData: endpoint is nullable (e8203a1)
  • GuildWelcomeScreenChannel: document missing description property (238695b)
  • OAuth2: scope can be optional / not required (bbe56a9)
  • OAuth2: remove invalid parameters from refresh token request (1c02450)
  • RPC: version RPC same as rest, export again in shortcuts (67e0ba1)
  • Utils: correct import for deno users (42dd75f)

chore

  • Gateway: remove guild_subscriptions (ab8b289)
  • GatewayReady: un-document private_channels (457edf4)
  • Integrations: remove routes that bots can no longer interact with (577c5bd)
  • MessageGetReactions: remove before pagination (0ec26b7)
  • Oauth2Scopes: remove rpc.api (7ee8511)
  • Permissions: rename USE_APPLICATION_COMMANDS to USE_SLASH_COMMANDS (2aa7f7a)
  • UserFlags: un-document SYSTEM flag (1774d4c)

Code Refactoring

Features

  • APIApplication: document terms_of_service and privacy_policy (598cbfb)
  • APIAttachment: add content_type (2d432d1)
  • APIChannel: add rtc_region (#108) (07ba907)
  • APIChannel: add video_quality_mode (#106) (d8d7bcc)
  • APIInteraction: add type-check utilities (3307201)
  • Exports: add globals to the exported sub-modules (5d35f61)
  • Gateway: add INTEGRATION_* events (9c3fab0)
  • GuildWelcomeScreen: document welcome-screen endpoint (169ecde)
  • Interactions: add batch command create / update (edfe70a)
  • Interactions: add Slash Command Permissions (f517f35)
  • Invites: document target_application & correct property names (97c8ab3)
  • MessageFlags: EPHEMERAL desc and added LOADING (#109) (4462255)
  • PatchAPIWebhookMessage: add file property (fc2f3c5)
  • Webhook: add & document url property (77e5bb6)
  • invite reminder system message type and flag (#105) (b90714f)
  • stage channels! (#107) (6cd7542)

BREAKING CHANGES

  • APIInteraction: This commit removes the guild_id property from APIDMInteraction which allows type-checks to work with the in operator. Because of that, we also provide utility functions that help with those type checks. Use them in your code by importing the Utils object, or by directly importing them. Check the README for examples
  • OAuth2: This commit removes parameters that are not expected in the refresh token request body

Reference: https://github.com/discord/discord-api-docs/commit/eaa12cbc8f96cf7cfe8c530f88e60582c24ca5dd

  • GatewayReady: This property has been deprecated for a while, and was returning an empty array for bot users. This commit removes it entirely

Reference: https://github.com/discord/discord-api-docs/commit/f36156dbb641f5c4d4f4593f345bfd6e27fdee08

  • Permissions: This commit brings consistency with the documentation, where the permission is documented as USE_SLASH_COMMANDS, whereas the client has it as USE_APPLICATION_COMMANDS internally

Reference: https://github.com/discord/discord-api-docs/commit/c7d25885c5cd80a49b31609a40b70603b35f9dec

  • MessageGetReactions: This query parameter is not usable and was not respected by the API.

Reference: https://github.com/discord/discord-api-docs/commit/f72b084773d4d3989fb19be4fb4d9cf276a1e6b3

  • OAuth2: This removes the scope property from the authorization code flow, as it is not expected there.

Reference: https://github.com/discord/discord-api-docs/commit/57965033ab4216a0bb853e85d6912531cd5a9981

  • Gateway: This removes guild_subscriptions, as it has been deprecated in favor of intents.

Reference: https://github.com/discord/discord-api-docs/commit/8de017436d37e56fab14cb8f68f0448a45ebc731

  • Oauth2Scopes: This removes the rpc.api scope, as it has been removed from the documentation.

Reference: https://github.com/discord/discord-api-docs/commit/2641d9808f676e7316483d152cdb37ed1168f968

  • APIMessage: This removes the APIMessageApplication interface, as it has been removed from the documentation, being replaced with the OAuth2 application.

Reference: https://github.com/discord/discord-api-docs/commit/ff0c831e424f1bc17dd3cde62da48d5c3d933e88

  • APIApplication: This renames the GatewayPresenceLimit flag to GatewayPresenceLimited, for consistency with GatewayGuildMembersLimited and the documented name.

Reference: https://github.com/discord/discord-api-docs/commit/39b254bed1cc396c475e508a3f2bf328815605c9

  • GatewayVoiceServerUpdateDispatchData: Any code that expects endpoint to never be null needs to be updated, and the conditions specified in the documentation need to be respected regarding that.

Reference: https://github.com/discord/discord-api-docs/commit/e887382fafd4c4417f7ba62963984f25bcb643f6

  • Invites: This renames target_user_type to target_type, the actual value the API expects.

Reference: https://github.com/discord/discord-api-docs/commit/1b4e363e324eb1f49a47e32cb0108fbe276c8e0e

  • GatewayPresenceUpdateData: Clearing activities is done by setting them to an empty array, not by setting them to null.

Reference: https://github.com/discord/discord-api-docs/commit/5bf598b864fb89262fce07137f68ce6e7e583432

  • UserFlags: This removes a flag that bots should not use, as Discord said this is an internal flag.

Reference: https://github.com/discord/discord-api-docs/commit/9293f0d490ac6acf9d627e429e5a8131b303b528

  • Integrations: This removes the 3 routes that bots can no longer access.

Reference: https://github.com/discord/discord-api-docs/commit/efe4e5808b6826d40302e265a5ae9b5b65d92fe7

  • Exports: Certain objects from this file have been moved to their appropriate spot (such as JSON Error Codes)
  • Files have been moved around in order to keep them organized. Exports might also be missing, so please report if that is the case.

0.13.3 (2021-03-28)

0.13.2 (2021-03-28)

Bug Fixes

  • ApplicationCommandInteractionDataOptionSubCommandGroup: typo (#102) (15c171c)

0.13.1 (2021-03-27)

Bug Fixes

  • APIInteractionResponse: data should not always be present (#100) (ffcd95d)

0.13.0 (2021-03-27)

Bug Fixes

  • deno: replace const enum exports in deno with normal enums (#89) (7343fab)
  • RESTPostAPIChannelMessageJSONBody: mark tts as a full boolean (#96) (9d8d090)
  • RESTPostAPIGuildsJSONBody: make some fields nullable (#91) (ae1900d)

Features

  • APIApplication: add ApplicationFlags (#92) (92f76f1)
  • APIApplicationCommandInteractionData: add resolved (#86) (24155ae)
  • APIBaseInteraction: add application_id (#98) (0582f88)
  • APIInteraction: DM slash commands and property descriptions (#84) (d0b3106)
  • APIInteractionResponse, APIInteractionResponseType: update for UI changes (#90) (eafe7ba)
  • APIMessage: add interaction (#93) (0f29b32)
  • APIMessageReferenceSend: add fail_if_not_exists (#82) (855f36d)
  • PermissionFlagsBits: add USE_APPLICATION_COMMANDS (#85) (ceb787b)
  • rest: api base routes (#87) (466fa95)
  • add Application Command events (#75) (da2c2e9)
  • add GET single Application Command (#76) (5826da2)
  • implement FormatPatterns (#79) (4e4a084)
  • OAuth2: add /oauth2/[@me](https://github.com/me) route (#73) (84759d1)
  • Webhook: add Edit Webhook Message result and error 50027 (#71) (4c77a5d)

0.12.1 (2021-01-05)

Bug Fixes

  • run deno workflow only on branch push (#66) (0ef4620)

Features

  • add Snowflake and Permissions types (#69) (549a6f0)

0.12.0 (2021-01-01)

Bug Fixes

  • APIApplication: flags should be omitted in REST, not optional everywhere (#57) (664ad80)
  • RESTPatchAPIChannelJSONBody: add missing bitrate field (#60) (15892ec)

Features

  • GatewayActivity: add missing fields (#39) (dccdfe0)

0.11.2 (2020-12-20)

0.11.1 (2020-12-19)

Bug Fixes

  • APIAuditLogEntry: user_id is not nullable (#52) (2b89beb)
  • RESTPostAPIGuildsJSONBody: system_channel_flags is optional (#53) (ba4c0d7)

0.11.0 (2020-12-19)

Bug Fixes

  • APIGuildMember: drop nullability of pending prop (#49) (c2f0dee)
  • RESTPatchAPIGuildJSONBody: multiple properties are actually nullable (#48) (018fc4f)

0.10.0 (2020-12-09)

Features

0.9.1 (2020-11-22)

0.9.0 (2020-11-22)

Features

0.8.0 (2020-11-03)

Bug Fixes

  • webhookPlatform route (#36) (666a0c7)
  • GatewayPresence: correct type for sent activity objects (#30) (61db1ee)

0.7.0 (2020-10-18)

Bug Fixes

  • GatewayHeartbeat: d is nullable (#26) (0982610)
  • GatewayIdentify: use correct presence interface (#28) (91c63f0)

Features

  • APIGuildWidgetMember: add activity and use proper status type (#24) (f058ed6)

0.6.0 (2020-10-04)

Bug Fixes

  • APIChannel: position is optional (#21) (061a147)
  • RESTPostAPIGuildsJSONBody: use correct types (#22) (dcf8ddf)

Features

0.5.0 (2020-09-19)

Bug Fixes

0.4.1 (2020-09-18)

Features

0.4.0 (2020-09-16)

Features

  • ActivityType: add Competing activity type (#11) (94d0a16)

0.3.0 (2020-09-14)

Bug Fixes

  • APIMessage: Correct APIMessage#mentions type (#9) (fe1868b)

0.2.0 (2020-09-10)

Bug Fixes

  • Readme: add missing semicolon (#1) (5e3e101)

0.1.1 (2020-08-22)

Bug Fixes

  • set target version to ES2020 (767a833)