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.
APIApplicationCommand: default_permission
GatewayReady: This property has been deprecated for a while, and was returning an empty array for bot users. This commit removes it entirely
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)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
GatewayReady: This property has been deprecated for a while, and was returning an empty array for bot users. This commit removes it entirely
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
MessageGetReactions: This query parameter is not usable and was not respected by the API.
OAuth2: This removes the scope property from the authorization
code flow, as it is not expected there.
Gateway: This removes guild_subscriptions, as it has been
deprecated in favor of intents.
Oauth2Scopes: This removes the rpc.api scope, as it has been removed
from the documentation.
APIMessage: This removes the APIMessageApplication interface, as it has
been removed from the documentation, being replaced with the OAuth2 application.
APIApplication: This renames the GatewayPresenceLimit flag to
GatewayPresenceLimited, for consistency with GatewayGuildMembersLimited
and the documented name.
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.
Invites: This renames target_user_type to target_type,
the actual value the API expects.
GatewayPresenceUpdateData: Clearing activities is done by setting them to an empty
array, not by setting them to null.
UserFlags: This removes a flag that bots should not use, as Discord said this is an internal flag.
Integrations: This removes the 3 routes that bots can no longer access.
Exports: Certain objects from this file have been moved to their appropriate spot (such as JSON Error Codes)
Your coding agent can read these notes before it upgrades. Set up the MCP server →
npm: fix globs to properly include just needed files (https://github.com/discordjs/discord-api-types/commit/679a5cfd779547f3f3d9ba2152dc1a788667e375)
ApplicationCommandInteractionDataOptionSubCommandGroup: correct the type value
type value (https://github.com/discordjs/discord-api-types/commit/15c171c558a10cd6d1c4880e725af0e63dd82255)APIInteractionResponse: correct type for data property
data property (https://github.com/discordjs/discord-api-types/commit/ffcd95d597a5d1c5b3ea072cd1dfb44f079de4b7)const enum exports in deno with normal enums (#89) (7343fab)tts as a full boolean (#96) (9d8d090)resolved (#86) (24155ae)interaction (#93) (0f29b32)fail_if_not_exists (#82) (855f36d)USE_APPLICATION_COMMANDS (#85) (ceb787b)/oauth2/[@me](https://github.com/me) route (#73) (84759d1)Webhook: add Webhook message edit result, and invalid webhook token error
/oauth2/@me route (https://github.com/discordjs/discord-api-types/commit/84759d19bc4cd0f33f0a94608c1af2b4d6a820c6)fail_if_not_exists property (https://github.com/discordjs/discord-api-types/commit/855f36d9309ae69f57da723648d3791e3134089e)interaction property (https://github.com/discordjs/discord-api-types/commit/0f29b32e05abe89f70f72989024b9c63493782fa)resolved property (https://github.com/discordjs/discord-api-types/commit/24155aeb71d46de48353ce01bfb48e197a84e59b)tts as a boolean (https://github.com/discordjs/discord-api-types/commit/9d8d090c9c6cd5be1f7b578b2f6a6387544f3359)application_id property (https://github.com/discordjs/discord-api-types/commit/0582f883c517e5fdc2373ac0a85717a7bfeec018)USE_APPLICATION_COMMANDS (https://github.com/discordjs/discord-api-types/commit/ceb787ba36ed05f25f9acab86496d3054cb15013)HEARTBEAT op code is bidirectional (https://github.com/discordjs/discord-api-types/commit/70bfe9f4aaea67c3aeb9289b7aa06b2b4e492d72)const enum with enum (https://github.com/discordjs/discord-api-types/commit/7343fabe82e4321808bac784aed600afa8cf4249)Snowflake/Permissions: make types stricter thanks to newer TypeScript features
*also known as the catching up with discord.js version*
also known as the catching up with discord.js version
permissions property to the returned member (https://github.com/discordjs/discord-api-types/commit/70b427bbb37d9e6dd0f80071827d1a7ce508a417)bitrate property (https://github.com/discordjs/discord-api-types/commit/15892ec870ff818d7f66bd9b57969638e5f17e1f)new_value is optional, not required (https://github.com/discordjs/discord-api-types/commit/e9472181262bb3ab7641787099af4d0fadec92bc)type is not always present (https://github.com/discordjs/discord-api-types/commit/1191464cd401ee3fba447d9538611b4420ae60b0)RESTPatchAPIGuildJSONBody: correctly mark system_channel_flags as optional
system_channel_flags as optional (https://github.com/discordjs/discord-api-types/commit/c28ef6c3d95565deb76fb9ad25eb59530703b882)RESTPostAPIGuild: correct the fact that system_channel_flags are optional
system_channel_flags are optional (https://github.com/discordjs/discord-api-types/commit/ba4c0d78f4ba3755f524b5f63420a36580a1a08e)user_id is not nullable (https://github.com/discordjs/discord-api-types/commit/2b89beb52b66a4865124b75069ca6bc3d5886c48)pending prop (#49) (c2f0dee)⚠️ ChannelPinsDispatch: correct type of last_pin_timestamp to be nullable
last_pin_timestamp to be nullable (https://github.com/discordjs/discord-api-types/commit/8d77142ca52d50e17c474b51fbc5e50d864c22f9)pending property (https://github.com/discordjs/discord-api-types/commit/b832b246033ecced3bd9b75c747e179b3f7dc4f8, https://github.com/discordjs/discord-api-types/commit/c2f0deeebd28fa3a09f795d1b263ff8fd5d9ae4d)enums have been converted into const enums (JS users won't see a difference, TS users will get the enum values inlined)devDependenciesEPHEMERAL flag (https://github.com/discordjs/discord-api-types/commit/91cf0d31d77318a7ce0f75fc57dd683418fcc225#diff-81ed2132d7252019041cf21ae521708562445459d2783e6dfb259fa13e1fccbcR156)channelMessageAllReactions route: corrected route (https://github.com/discordjs/discord-api-types/commit/91cf0d31d77318a7ce0f75fc57dd683418fcc225#diff-8104c895d8c35ea72c5cb796db5e492fa800f1c2030076ac0a5cdeb576c627faR98)APIApplication object added with slash commands (https://github.com/discordjs/discord-api-types/commit/5d0f885d25e176ca7d019f77ec1a38fabcde9605)d property of all payloads as separate types you may use (https://github.com/discordjs/discord-api-types/commit/5d0f885d25e176ca7d019f77ec1a38fabcde9605)✨ Templates: added guild template types
VoiceOPCodes: add missing OP 12
⚠️ RESTAPIGuildIntegration: remove query parameters from RESTGetAPIGuildIntegration
RESTGetAPIGuildIntegration (https://github.com/discordjs/discord-api-types/commit/2ee557a59884b39634003edc72c88ceec7fcd661)INLINE_REPLY to REPLY to match Discord's Documentation (https://github.com/discordjs/discord-api-types/commit/fde45f92353dec977fde08e4e434d15431147143)replied_user to APIAllowedMentions (https://github.com/discordjs/discord-api-types/commit/21b9ae4aaf29c276d1a6ccc4c79ace8d64a53e9d)(semi-⚠️) GatewayPresenceUpdate: correct type for the send-able presence update
webhookPlatform (https://github.com/discordjs/discord-api-types/commit/666a0c71528e385677570b5359ba266276202a95)v8 (https://github.com/discordjs/discord-api-types/commit/e40530599ea9206bcbbeaecbce02cbcd301fe523)GatewayHeartbeat: d property can be null
d property can be null (https://github.com/discordjs/discord-api-types/commit/098261073163eeb4fcfc217dea3511ccea1f27c5)activity property and correct status to be a PresenceUpdateStatus instead of a string (https://github.com/discordjs/discord-api-types/commit/f058ed6aa1f7593c22e4a3f0c9dd2f4bbd0190dc)presences types (https://github.com/discordjs/discord-api-types/commit/91c63f05ca1e8e92c4c1df124365405fe8d34108)⚠️ v6: All v6 types have been deprecated and will not receive further updates unless necessary. Please migrate to v8 as soon as possible
v8 as soon as possible (https://github.com/discordjs/discord-api-types/commit/11b95c86099e609128a8ca76d06d43498fae72f5)APIUser: mark premium_type as optional
premium_type as optional (https://github.com/discordjs/discord-api-types/commit/8cf1ba3f4f3c28f962afad4bfcc02f5bb897286a)device to $device per Discord's docs (https://github.com/discordjs/discord-api-types/commit/9e5c5b5aac30e931255f39790123b4bd3458a16f)UnknownWebhook from UnknownWehook (https://github.com/discordjs/discord-api-types/commit/97c7b4ea24852f49b5f952e81a0e6f21ed405316)## Changes - OAuth2: document oauth2 types (https://github.com/discordjs/discord-api-types/commit/10fdeba1286e385e087d6c9405872f948507f183) ## Miscell
⚠️ GuildAuditLog: correct audit log change type and make them more type safe
⚠️ Message: correct type of mentions as an array of augmented user objects, not a single object
mentions as an array of augmented user objects, not a single object (https://github.com/discordjs/discord-api-types/commit/fe1868b04f8a9f4be1c09ffba0afa60f4def8595)RESTErrors: document code 20028
RELAY_ENABLE (https://github.com/discordjs/discord-api-types/commit/09d05be8bea3970965d074480f9a329acf5c3f18)DiscordPartner to PartneredServerOwner and VerifiedBotDeveloper to EarlyVerifiedBotDeveloper (https://github.com/discordjs/discord-api-types/commit/512b9fed718167db4eb17b770722cf70f7a19f10)application to GuildIntegrations (https://github.com/discordjs/discord-api-types/commit/63941091f842dfdba6fa6ea0729f26723ee19cd7)package.json, update GitHub actions, and lint files (https://github.com/discordjs/discord-api-types/commit/3155116454308642cf3d2913fa3a99bb53ad64a0)This release contains the entire v6 spec of Discord's API (including several known PRs available on the API docs repository) ready for use.
This release contains the entire v6 spec of Discord's API (including several known PRs available on the API docs repository) ready for use.
Nothing published for this version
One column per quarter.