Up to date Discord API Typings, versioned by the API version
MIT License
Bot releases are hidden (Show)
Published by vladfrangu over 2 years ago
50600
(#444) (5ef49f4)Full Changelog: https://github.com/discordjs/discord-api-types/compare/0.33.0...0.33.1
Published by vladfrangu over 2 years ago
stickers
(#279) (310c68f)member
field (#299) (80ed7ba)image
prop (#303) (663c4e9)create_timestamp
field (#301) (d95d956)newly_created
field (#311) (7e54215)FailedToMentionSomeRolesInThread
(#280) (76588d9)communication_disabled_until
field (#289) (5056b0f)Spammer
flag (#294) (03f12d7)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
Full Changelog: https://github.com/discordjs/discord-api-types/compare/0.26.1...0.27.0
Published by vladfrangu almost 3 years ago
communication_disabled_until
(#281) (0cf51ab)Full Changelog: https://github.com/discordjs/discord-api-types/compare/0.26.0...0.26.1
Published by vladfrangu almost 3 years ago
GatewayDispatchPayload
(#267) (46db72d)t
& s
fields are always null on non-dispatch payloads (#259) (315ce35)banner_asset_id
(#270) (7eee39d)50055
(#256) (b01716b)guild_scheduled_events
prop (#251) (c7efcd5)guild_id
extra field (#266) (2c72242)exactOptionalPropertyTypes
(#275) (c20e5ae)banner_asset_id
is now optional. Reference PR: https://github.com/discord/discord-api-docs/pull/4245
*Options
) have had their pluralization removed (*Option
now).APIApplicationCommandInteractionDataOptionWithValues
has been renamed to APIApplicationCommandInteractionDataBasicOption
,*InteractionDataOptions{Type}
interfaces have been renamed to *InteractionData{Type}Option
ApplicationCommandInteractionDataOptionString
-> APIApplicationCommandInteractionDataStringOption
).Full Changelog: https://github.com/discordjs/discord-api-types/compare/0.25.2...0.26.0
Published by vladfrangu almost 3 years ago
Full Changelog: https://github.com/discordjs/discord-api-types/compare/0.25.1...0.25.2
Published by vladfrangu almost 3 years ago
Full Changelog: https://github.com/discordjs/discord-api-types/compare/0.25.0...0.25.1
Published by vladfrangu almost 3 years ago
default
property (#242) (faa8bf4)rate_limit_per_user
(#237) (1e52e0c)BOT_HTTP_INTERACTIONS
flag (#212) (a015f96)default
property for ApplicationCommandOptions, it has been removed, as Discord wasn't even taking it into account anymore.Full Changelog: https://github.com/discordjs/discord-api-types/compare/0.24.0...0.25.0
Published by vladfrangu about 3 years ago
channel_types
field to channel options (#198) (77396b5)parent_id
and thread_metadata
fields to resolved channels (#210) (64e4e52)StartEmbeddedActivities
(#197) (4bbe1ea)vip
property has been removed.Full Changelog: https://github.com/discordjs/discord-api-types/compare/0.23.1...0.24.0
Published by vladfrangu about 3 years ago
nickname
type (#189) (64937e2)version
field (#193) (ecbed18)banner
and accent_color
(#183) (b07b903)160002
(#190) (8b49887)invitable
(#185) (b6babf2)APIEmbedAuthor#name
is required, not optionalAPIEmbedThumbnail#url
is required, not optionalAPIEmbedImage#url
is required, not optionalPublished by vladfrangu about 3 years ago
SubCommand
to Subcommand
, and SubCommandGroup
to SubcommandGroup
Routes#channelJoinedArchivedThreads
is now spelled right (from Routes#channelJoinedArhivedThreads
)GatewayThreadListSync#members
is now an array of APIThreadMember instead of a Record of GatewayThreadListSyncMemberPublished by vladfrangu about 3 years ago
${bigint}
template type back to a normal string typePublished by vladfrangu over 3 years ago
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 RESTPostAPIWebhookWithTokenQuery
ID
word in them have had it renamed to Id
(ex: APIButtonComponentWithCustomID
is now APIButtonComponentWithCustomId
)isStyledButton
util has been renamed to isInteractionButton
Published by vladfrangu over 3 years ago
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.
Published by vladfrangu over 3 years ago
preview_asset
property from sticket objects
rtc_region
isn't present on non-voice-like channelsPublished by vladfrangu over 3 years ago
nsfw
property (#116) (21b572b)UnknownInteraction
error code (#115) (ced37d0)@me