NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #4552 most downloaded on npm
Discord API typings that are kept up to date for use in bot library creation.
Latest stable
0.38.58
Last release 14 days ago
08 Nov 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 59 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
1344 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
APIInteraction: bring back Ping type
Interactions: add interaction response and followup route
UseExternalStickers (1n << 37n) (#154) (5dccc6b)GatewayGuildMemberUpdateDispatchData#joined_at is properly marked as nullable nowthread_id was incorrectly placed in RESTPostAPIWebhookWithTokenJSONBody and has been moved to RESTPostAPIWebhookWithTokenQueryID word in them have had it renamed to Id (ex: APIButtonComponentWithCustomID is now APIButtonComponentWithCustomId)isStyledButton util has been renamed to isInteractionButtonOAuth (#134) (f0b2766)nsfw_level (#149) (5256ac7)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.
rename isStyledButton to isInteractionButton
UseExternalStickers (1n << 37n) (#154) (5dccc6b)GatewayGuildMemberUpdateDispatchData#joined_at is properly marked as nullable nowthread_id was incorrectly placed in RESTPostAPIWebhookWithTokenJSONBody and has been moved to RESTPostAPIWebhookWithTokenQueryID word in them have had it renamed to Id (ex: APIButtonComponentWithCustomID is now APIButtonComponentWithCustomId)isStyledButton util has been renamed to isInteractionButtonNothing published for this version
FormattingPatterns: fix StyledTimestamp
OAuth (#134) (f0b2766)nsfw_level (#149) (5256ac7)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.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
APIInvite: expires_at is nullable
expires_at field and with_expiration param (#127) (82ca0ce)MENTIONABLE (9) (#126) (91afb0b)InviteTargetUserType is renamed to InviteTargetType, to match the documentation.
preview_asset property from sticket objects
rtc_region isn't present on non-voice-like channelsnsfw property (#116) (21b572b)UnknownInteraction error code (#115) (ced37d0)@me
APIInvite: channel is not optional
InviteTargetUserType is renamed to InviteTargetType, to match the documentation.
APIChannel: rtc_region is optional
preview_asset property from sticket objects
rtc_region isn't present on non-voice-like channelsRoutes: possibly a breaking change due to the fact that the messageID is now strictly typed as a Snowflake or @me
nsfw property (#116) (21b572b)UnknownInteraction error code (#115) (ced37d0)@me
TypeScript: imports not working in TypeScript
await in versions script, log any errors from deno one (9113eb1)default_permissions property to default_permission, the correct spelling.application (ed2cbe8)activities may not be null (bb3cb04)endpoint is nullable (e8203a1)description property (238695b)scope can be optional / not required (bbe56a9)RPC same as rest, export again in shortcuts (67e0ba1)guild_subscriptions (ab8b289)private_channels (457edf4)before pagination (0ec26b7)rpc.api (7ee8511)USE_APPLICATION_COMMANDS to USE_SLASH_COMMANDS (2aa7f7a)SYSTEM flag (1774d4c)terms_of_service and privacy_policy (598cbfb)content_type (2d432d1)rtc_region (#108) (07ba907)video_quality_mode (#106) (d8d7bcc)globals to the exported sub-modules (5d35f61)INTEGRATION_* events (9c3fab0)welcome-screen endpoint (169ecde)target_application & correct property names (97c8ab3)EPHEMERAL desc and added LOADING (#109) (4462255)file property (fc2f3c5)url property (77e5bb6)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 examplesReference: https://github.com/discord/discord-api-docs/commit/eaa12cbc8f96cf7cfe8c530f88e60582c24ca5dd
Reference: https://github.com/discord/discord-api-docs/commit/f36156dbb641f5c4d4f4593f345bfd6e27fdee08
USE_SLASH_COMMANDS, whereas the
client has it as USE_APPLICATION_COMMANDS internallyReference: https://github.com/discord/discord-api-docs/commit/c7d25885c5cd80a49b31609a40b70603b35f9dec
Reference: https://github.com/discord/discord-api-docs/commit/f72b084773d4d3989fb19be4fb4d9cf276a1e6b3
scope property from the authorization
code flow, as it is not expected there.Reference: https://github.com/discord/discord-api-docs/commit/57965033ab4216a0bb853e85d6912531cd5a9981
guild_subscriptions, as it has been
deprecated in favor of intents.Reference: https://github.com/discord/discord-api-docs/commit/8de017436d37e56fab14cb8f68f0448a45ebc731
rpc.api scope, as it has been removed
from the documentation.Reference: https://github.com/discord/discord-api-docs/commit/2641d9808f676e7316483d152cdb37ed1168f968
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
GatewayPresenceLimit flag to
GatewayPresenceLimited, for consistency with GatewayGuildMembersLimited
and the documented name.Reference: https://github.com/discord/discord-api-docs/commit/39b254bed1cc396c475e508a3f2bf328815605c9
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
target_user_type to target_type,
the actual value the API expects.Reference: https://github.com/discord/discord-api-docs/commit/1b4e363e324eb1f49a47e32cb0108fbe276c8e0e
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
Reference: https://github.com/discord/discord-api-docs/commit/9293f0d490ac6acf9d627e429e5a8131b303b528
Reference: https://github.com/discord/discord-api-docs/commit/efe4e5808b6826d40302e265a5ae9b5b65d92fe7
One column per quarter.