0.37.17 (2022-11-07)
0.37.16 (2022-10-31)
- 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)
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)
- add some missing REST types (#612) (8d25f23)
- Components: new select menus (#602) (df1452d)
- GuildFeature: add
DeveloperSupportServer
(#618) (8c1484e) - RESTJSONErrorCodes: add 50039 error (#607) (131637f)
- UserPremiumType: add
NitroBasic
(#616) (9448e9b)
0.37.14 (2022-10-15)
0.37.13 (2022-10-14)
0.37.12 (2022-10-06)
0.37.11 (2022-09-26)
- APIGuildForumChannel: add
default_sort_order
(#589) (143b003) - APIGuildForumChannel: update and add missing features (#575) (0f118d3)
0.37.10 (2022-09-15)
- add
RESTRateLimit
(#585) (f4d3f4d) - APIConnection: add
two_way_link
(#546) (d452f63) - APIGuild: document afk timeout values (#570) (32f5a7b)
0.37.9 (2022-09-12)
0.37.8 (2022-09-08)
0.37.7 (2022-09-05)
- ChannelType: bring back old names (b08f2e3)
0.37.6 (2022-09-05)
- APIModalSubmission:
components
is not optional (#574) (f69b586) - GuildChannelType: add missing
GuildCategory
type (#579) (815c68f) - RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody:
channel_id
is optional (#547) (b7b855b)
- APIGuildIntegration: add
scopes
(#563) (73d15dd) - ApplicationFlags: add
ApplicationCommandBadge
(#537) (48f0f56) - RESTPutAPIGuildBanJSONBody: add
delete_message_seconds
(#534) (4e362d5)
0.37.5 (2022-08-25)
0.37.4 (2022-08-22)
- add common JSON error types (#568) (956f289)
- ApplicationCommand: export base chat input types (#569) (248484e)
0.37.3 (2022-08-18)
0.37.2 (2022-08-11)
- 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)
- add search that might or might not work (f8a9c8b)
- APIVoiceChannel: support text in voice, properties
last_message_id
andrate_limit_per_user
(#544) (4488d8f) - GatewayReadyDispatchData: add
resume_gateway_url
(#552) (9a50367)
0.37.1 (2022-08-04)
0.37.0 (2022-07-28)
- RESTJSONErrorCodes: use
MaximumThreadParticipantsReached
instead in error code 30033 (#540) (cecf17b)
- RESTJSONErrorCodes:
MaximumThreadParticipants
was renamed toMaximumThreadParticipantsReached
for consistency with the rest of the codes
0.36.3 (2022-07-21)
- APIConnection: add
ConnectionService
totype
(#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)
- RESTJSONErrorCodes: add error
30032
(#521) (f2c3451) - RESTPutAPIApplicationGuildCommandsJSONBody: add missing
id
(#522) (4af2ea9)
0.36.1 (2022-07-04)
0.36.0 (2022-06-30)
- APIBaseInteraction: add
app_permissions
(#509) (0c65d40) - MessageType: update names (#498) (12072b7)
- RESTJSONErrorCodes: add error 20024 (#480) (34908aa)
- MessageType: The following message types have been renamed:
GuildMemberJoin
->UserJoin
UserPremiumGuildSubscription
->GuildBoost
UserPremiumGuildSubscriptionTier1
->GuildBoostTier1
UserPremiumGuildSubscriptionTier2
->GuildBoostTier2
UserPremiumGuildSubscriptionTier3
->GuildBoostTier3
0.35.0 (2022-06-23)
- APIEmbedVideo: add missing
proxy_url
property (#496) (56d491f) - REST: add
CDNRoutes
(#502) (0609886) - UserFlags: add
Quarantined
flag (#495) (fc3aa1c)
- GatewayIdentifyProperties: The fields for identify no longer use the
$
prefix for the values.
0.34.0 (2022-06-13)
- add guild mfa endpoint and error
50017
(#476) (292c6b5) - RESTJSONErrorCodes: add 220003 error (#466) (20653b3)
- Certain fields that come only through the gateway are now correctly typed as such
0.33.5 (2022-06-07)
- GatewayGuildCreateDispatch: add missing
GatewayGuildCreateDispatch
(#477) (d268e0b) - RESTPostAPIWebhookWithTokenJSONBody:
thread_name
should be optional (#479) (eff8892)
0.33.4 (2022-06-06)
0.33.3 (2022-06-04)
0.33.2 (2022-06-01)
- 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)
- RESTJSONErrorCodes: add error
50600
(#444) (5ef49f4) - RESTPostAPIGuildChannels: update post body fields (#419) (748db34)
0.33.0 (2022-05-16)
- GuildFeature: thread archive durations are no longer boost locked (#412) (1737ade)
- separate
GUILD_CREATE
fields fromAPIGuild
object (#423) (17f5caa)
- add support for application command permissions v2 (#415) (d3163ca)
- OAuth2Scopes: add new OAuth2 scopes (#435) (8f16f45)
- rest: add missing guild routes results (#438) (1afce87)
- 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
andThreeDayThreadArchive
have been removed as they are no longer valid
0.32.1 (2022-05-05)
- RESTJSONErrorCodes: add error
50080
(#408) (43cfbcb) - RESTPostAPIGuildForumThreads: add
message
field (#416) (a28c824)
0.32.0 (2022-04-25)
- APIGuildIntegration:
enabled
is now properly marked as optional
0.31.2 (2022-04-18)
0.31.1 (2022-04-11)
- APIApplicationCommandInteractionData: add
guild_id
(#396) (bc6e97f) - APIGuildForum: add support for forums, part 1 (#398) (bf08484)
- student hubs (#215) (69079ee)
0.31.0 (2022-04-04)
- APIGroupDMChannel: make
name
nullable (#347) (ed0049b) - remove
summary
from applications (#386) (f0ab4e8) - remove store channels (#364) (25677ff)
- 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)
- 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)
- APIGuildIntegrationType:
APIGuildInteractionType
is now correctly namedAPIGuildIntegrationType
0.29.0 (2022-03-10)
- GatewayVoiceState: some fields are optional instead of nullable (#345) (fddff21)
- RESTJSONErrorCodes: typo in error
30046
(#362) (854aa36)
- APIGuildScheduledEventBase: make
description
nullable (#359) (e5710d0) - make things optional and nullable where applicable (#361) (10fdeaa)
- RESTJSONErrorCodes: update error
50008
key (#338) (9a57848)
- APIInviteGuild: add boost count (#323) (cb92843)
- APIStageInstance: add
guild_scheduled_event_id
(#350) (d06d2d6) - RESTJSONErrorCodes: add error
10065
(#336) (e8127b8)
- RESTJSONErrorCodes:
MaximumNumberOfEditsToMessagesOlderThanOneHourReached
is no longer mistyped asMaxmimumNumberOfEditsToMessagesOlderThanOneHourReached
- APIGuildScheduledEventBase: The type for
description
can also be null, not just optional - RESTJSONErrorCodes: The error code
50008
has been renamed fromCannotSendMessagesInVoiceChannel
toCannotSendMessagesInNonTextChannel
- The deprecated
asset
field for stickers is correctly marked as optional now. Theimage
field for Guild Scheduled Events is now correctly typed as optional. - GatewayVoiceState:
channel_id
andrequest_to_speak_timestamp
are correctly typed as optional, not nullable now.
0.28.0 (2022-03-07)
- 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)
- PermissionFlagsBits: The
StartEmbeddedActivities
permission flag has been renamed toUseEmbeddedActivities
0.27.3 (2022-02-24)
- APIApplicationCommandAutocompleteInteraction: make
options
field required for v10 (PR #332 redo) (#339) (8d432f2)
0.27.2 (2022-02-17)
- APIApplicationCommandAutocompleteInteraction: make
options
field required (#332) (5396daf) - APIInteractionResponse: add
APIModalInteractionResponse
to union (#333) (a8f19e6)
0.27.1 (2022-02-14)
- 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)
0.27.0 (2022-02-10)
- 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)
-
Interactions:
APIBaseMessageComponent
was renamed toAPIBaseComponent
-
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 toPlaying
0.26.1 (2022-01-02)
- 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)
- 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)
- 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)
- Make application command option union easier to use (#250) (8bbb819)
- ChatInputCommandOptions: cleanup chat input options (#274) (7fe78ce)
- 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 toAPIApplicationCommandInteractionDataBasicOption
, and every*InteractionDataOptions{Type}
interfaces have been renamed to*InteractionData{Type}Option
(i.e.:ApplicationCommandInteractionDataOptionString
->APIApplicationCommandInteractionDataStringOption
).
0.25.2 (2021-11-30)
0.25.1 (2021-11-30)
0.25.0 (2021-11-29)
- 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)
- 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)
- 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)
- 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
andthread_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)
- APIVoiceRegion: The
vip
property has been removed.
0.23.1 (2021-09-08)
0.23.0 (2021-09-07)
- AuditLog: correct
nickname
type (#189) (64937e2) - Embed: correct certain optional types as being required (#192) (e628f0f)
- import causing error 404 on deno (#178) (8fcd0f2)
- APIApplicationCommand: add
version
field (#193) (ecbed18) - APIUser: add
banner
andaccent_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)
- Gateway: The three Application Command events have been removed
- Embed:
APIEmbedAuthor#name
is required, not optionalAPIEmbedThumbnail#url
is required, not optionalAPIEmbedImage#url
is required, not optional
0.22.0 (2021-07-31)
- Gateway: thread list sync now sends an array as documented (#174) (a93235c)
- MessageComponent: correct type for emoji (#176) (b75b05f)
- ApplicationCommandOptionType: This renames
SubCommand
toSubcommand
, andSubCommandGroup
toSubcommandGroup
Routes#channelJoinedArchivedThreads
is now spelled right (fromRoutes#channelJoinedArhivedThreads
)- Gateway:
GatewayThreadListSync#members
is now an array of APIThreadMember instead of a Record of GatewayThreadListSyncMember
0.21.0 (2021-07-30)
- change resolved index types to string (#169) (d338409)
- export APIPingInteraction (#168) (ef2a0ae)
- APIInteraction: bring back Ping type (#164) (ff75eb3)
- ApplicationCommandOptionType: add Number (10) (#153) (6f15e53)
- Globals: revert template bigint type to string type (#171) (f299507)
- 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)
0.20.1 (2021-07-20)
0.20.0 (2021-07-20)
- PermissionFlagsBits: add
UseExternalStickers
(1n << 37n) (#154) (5dccc6b) - RESTJSONErrorCodes: add sticker errors (#155) (8dbeca0)
GatewayGuildMemberUpdateDispatchData#joined_at
is properly marked as nullable now- In v9,
thread_id
was incorrectly placed inRESTPostAPIWebhookWithTokenJSONBody
and has been moved toRESTPostAPIWebhookWithTokenQuery
- All types that contained the
ID
word in them have had it renamed toId
(ex:APIButtonComponentWithCustomID
is nowAPIButtonComponentWithCustomId
) - The
isStyledButton
util has been renamed toisInteractionButton
0.19.0 (2021-07-19)
- FormattingPatterns: fix StyledTimestamp (#147) (dd12c6a)
- RESTOAuth2: correct casing of
OAuth
(#134) (f0b2766) - RESTPostAPIWebhookWithTokenJSONBody: add missing components (#152) (ca933ae)
- fix autopublish CD (#140) (8627c9d)
- 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)
-
APISelectOption
has been renamed toAPISelectMenuOption
-
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
tonick
-
Add
application_id
to APIMessage -
Correct type of
id
anduser_id
in APIThreadMember -
The type of
id
anduser_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
andRESTGetAPIOauth2CurrentAuthorizationResult
have been renamed toRESTGetAPIOAuth2CurrentApplicationResult
andRESTGetAPIOAuth2CurrentAuthorizationResult
, to correct the casing ofOAuth
-
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)
- add new interfaces for interaction-related structures (#129) (bd638b9)
- APIInvite: add
expires_at
field andwith_expiration
param (#127) (82ca0ce) - ApplicationCommandOptionType: add
MENTIONABLE
(9) (#126) (91afb0b)
0.18.0 (2021-04-18)
- Invite:
InviteTargetUserType
is renamed toInviteTargetType
, to match the documentation.- Reference: discord/discord-api-docs#2690
0.17.0 (2021-04-17)
- APISticker: This removes the
preview_asset
property from sticket objects - APIChannel: This corrects the fact that
rtc_region
isn't present on non-voice-like channels
0.16.0 (2021-04-14)
- Guild: add
nsfw
property (#116) (21b572b) - RESTJSONErrorCode: add
UnknownInteraction
error code (#115) (ced37d0)
- Routes: possibly a breaking change due to the fact that the messageID is now strictly typed as a Snowflake or
@me
- Reference: discord/discord-api-docs#2410
0.15.1 (2021-04-12)
- TypeScript: imports not working in TypeScript (4738c33)
0.15.0 (2021-04-11)
- APIApplicationCommand: default_permission (#111) (9420c3e)
- Scripts:
await
inversions
script, log any errors from deno one (9113eb1)
- APIApplicationCommand: This renames the
default_permissions
property todefault_permission
, the correct spelling.
0.14.0 (2021-04-11)
- APIMessage: correct type for
application
(ed2cbe8) - GatewayGuildMemberUpdateDispatchData: correct types (14f14e2)
- GatewayPresenceUpdateData:
activities
may not benull
(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 asrest
, export again inshortcuts
(67e0ba1) - Utils: correct import for deno users (42dd75f)
- 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
toUSE_SLASH_COMMANDS
(2aa7f7a) - UserFlags: un-document
SYSTEM
flag (1774d4c)
- restructure module (81cdfc2)
- APIApplication: document
terms_of_service
andprivacy_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 addedLOADING
(#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)
- APIInteraction: This commit removes the
guild_id
property fromAPIDMInteraction
which allows type-checks to work with thein
operator. Because of that, we also provide utility functions that help with those type checks. Use them in your code by importing theUtils
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 asUSE_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 ofintents
.
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 toGatewayPresenceLimited
, for consistency withGatewayGuildMembersLimited
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
totarget_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 tonull
.
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)
0.13.1 (2021-03-27)
0.13.0 (2021-03-27)
- deno: replace
const enum
exports in deno with normalenum
s (#89) (7343fab) - RESTPostAPIChannelMessageJSONBody: mark
tts
as a full boolean (#96) (9d8d090) - RESTPostAPIGuildsJSONBody: make some fields nullable (#91) (ae1900d)
- 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)
0.12.0 (2021-01-01)
- APIApplication: flags should be omitted in REST, not optional everywhere (#57) (664ad80)
- RESTPatchAPIChannelJSONBody: add missing bitrate field (#60) (15892ec)
0.11.2 (2020-12-20)
0.11.1 (2020-12-19)
- APIAuditLogEntry: user_id is not nullable (#52) (2b89beb)
- RESTPostAPIGuildsJSONBody: system_channel_flags is optional (#53) (ba4c0d7)
0.11.0 (2020-12-19)
- APIGuildMember: drop nullability of
pending
prop (#49) (c2f0dee) - RESTPatchAPIGuildJSONBody: multiple properties are actually nullable (#48) (018fc4f)
0.10.0 (2020-12-09)
0.9.1 (2020-11-22)
0.9.0 (2020-11-22)
0.8.0 (2020-11-03)
- webhookPlatform route (#36) (666a0c7)
- GatewayPresence: correct type for sent activity objects (#30) (61db1ee)
0.7.0 (2020-10-18)
- GatewayHeartbeat: d is nullable (#26) (0982610)
- GatewayIdentify: use correct presence interface (#28) (91c63f0)
0.6.0 (2020-10-04)
- APIChannel: position is optional (#21) (061a147)
- RESTPostAPIGuildsJSONBody: use correct types (#22) (dcf8ddf)
0.5.0 (2020-09-19)
- correct typos (#18) (97c7b4e)
- APIUser: premium_type is optional (#19) (8cf1ba3)
- GatewayIdentifyProperties: rename
device
to$device
(#17) (9e5c5b5)
0.4.1 (2020-09-18)
0.4.0 (2020-09-16)
0.3.0 (2020-09-14)
0.2.0 (2020-09-10)
0.1.1 (2020-08-22)
- set target version to ES2020 (767a833)