Releases: discord/discord-interactions-js
Releases · discord/discord-interactions-js
4.3.0 - Components v2 support, dependency updates, webhook enums
What's Changed
- Add Components v2 Types by @anthonydiscord in #89
- chore(deps): update dependency body-parser to v2 by @renovate-bot in #88
- feat: add webhook enums by @ahmedrangel in #84
- Fix example by @anthonydiscord in #90
New Contributors
- @anthonydiscord made their first contribution in #89
- @ahmedrangel made their first contribution in #84
Full Changelog: 4.1.1...4.3.0
4.1.1 - Fix some types
Small bug-fix release that fixes the types for ActionRow
's components
and also adds the various XSelect
components to MessageComponents
4.1.0 - New InteractionResponseType: LAUNCH_ACTIVITY (type 12)
Adds LAUNCH_ACTIVITY
(type 12
) to InteractionResponseType
, adding support for launching activities in response to interactions.
4.0.0
Welcome to 4.0! This release includes new features and a couple of breaking changes.
Breaking Changes
Node.js 18.4 and up required
Support for previous versions of node.js have been dropped. This isn't a soft break - we now rely on the Ed25519
algorithm in subtlecrypto, which is only available in versions 18.4 and up.
verifyKey is now async
Due to the dependency on subtle crypto, the verifyKey
method is now async. Make sure to use an await
when evaluating the result of verifyKey
. See #73 to learn more.
const signature = req.get('X-Signature-Ed25519');
const timestamp = req.get('X-Signature-Timestamp');
const isValid = await verifyKey(req.rawBody, signature, timestamp, 'MY_CLIENT_PUBLIC_KEY');
Features
- Added
ButtonStyleTypes.Premium
#55 - The library should be significantly faster due to dropping the dependency on tweetnacl