From fb0a9978554fd56cba90fead0337ba4f52207973 Mon Sep 17 00:00:00 2001 From: itsMapleLeaf <19603573+itsMapleLeaf@users.noreply.github.com> Date: Sat, 28 Oct 2023 14:34:13 -0500 Subject: [PATCH] changeset --- .changeset/many-pets-melt.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .changeset/many-pets-melt.md diff --git a/.changeset/many-pets-melt.md b/.changeset/many-pets-melt.md new file mode 100644 index 0000000..b8a8763 --- /dev/null +++ b/.changeset/many-pets-melt.md @@ -0,0 +1,33 @@ +--- +"reacord": minor +--- + +add new descriptive adapter methods + +The reacord instance names have been updated, and the old names are now deprecated. + +- `send` -> `createChannelMessage` +- `reply` -> `createInteractionReply` + +These new methods also accept discord JS options. Usage example: + +```ts +// 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, +}) +``` + +These new methods replace the old ones, which are now deprecated.