Releases: discordjs/discord-api-types
Releases · discordjs/discord-api-types
0.11.0
Changes
⚠️ ChannelPinsDispatch: correct type oflast_pin_timestamp
to be nullable (8d77142)- APIGuildMember: add
pending
property (b832b24, c2f0dee) - RESTPatchAPIGuildJSONBody: mark certain properties as nullable (018fc4f)
- ✨ Interactions, Slash Commands, REST: added types for the new Slash Commands (91cf0d3)
- semi-
⚠️ : allenum
s have been converted intoconst enum
s (JS users won't see a difference, TS users will get the enum values inlined) - updated
devDependencies
- MessageFlags: document
EPHEMERAL
flag (91cf0d3#diff-81ed2132d7252019041cf21ae521708562445459d2783e6dfb259fa13e1fccbcR156) - APIInteraction, APIApplicationCommand, etc: added types for slash commands (91cf0d3#diff-fdad1ab2bad66a57e5aea1aaaa12d94b087157bde9dae2927125b274dafe6f6d)
⚠️ REST Routes: corrected names of the exported routes (91cf0d3#diff-8104c895d8c35ea72c5cb796db5e492fa800f1c2030076ac0a5cdeb576c627fa)- semi-
⚠️ channelMessageAllReactions
route: corrected route (91cf0d3#diff-8104c895d8c35ea72c5cb796db5e492fa800f1c2030076ac0a5cdeb576c627faR98) - REST Routes: document all application command routes; add docstrings for new webhook routes
- GatewayReadyDispatch: document added partial
APIApplication
object added with slash commands (5d0f885)
- semi-
- Gateway Types: export the
d
property of all payloads as separate types you may use (5d0f885) - Webhook: added webhook message route types (ec9002f)
0.10.0
0.9.1
0.9.0
Changes
⚠️ RESTAPIGuildIntegration: remove query parameters fromRESTGetAPIGuildIntegration
(2ee557a)⚠️ MessageTypes: renameINLINE_REPLY
toREPLY
to match Discord's Documentation (fde45f9)- ✨ Sticker: added typings for stickers (39ea1f4)
- Inline Replies: corrected typings for inline replies and added
replied_user
to APIAllowedMentions (21b9ae4)
0.8.0
Changes
- (semi-
⚠️ ) GatewayPresenceUpdate: correct type for the send-able presence update (61db1ee) ⚠️ Message: correct types for Inline Replies type and it's REST variant (7992fab)- RESTRoutes: correct route for
webhookPlatform
(666a0c7)
Miscellaneous
- readme: update suggested version import to
v8
(e405305)