github-actions
released this
28 Oct 19:54
·
5 commits
to main
since this release
Minor Changes
-
11153df: breaking: more descriptive component event types
-
fb0a997: add new descriptive adapter methods
The reacord instance names have been updated, and the old names are now deprecated.
send
->createChannelMessage
reply
->createInteractionReply
ephemeralReply
->createInteractionReply(interaction, { ephemeral: true })
These new methods also accept discord JS options. Usage example:
// can accept either a channel object or a channel ID reacord.createChannelMessage(channel) reacord.createChannelMessage(channel, { tts: true, }) reacord.createChannelMessage(channel, { reply: { messageReference: "123456789012345678", failIfNotExists: false, }, }) reacord.createInteractionReply(interaction) reacord.createInteractionReply(interaction, { ephemeral: true, })