Skip to content

Commit

Permalink
Changes for version 3.5.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
javis86 committed Aug 5, 2023
1 parent 7166520 commit 5ab39d7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Changelog\

## [Unreleased]
## 3.5.0
* Feature - Added DiscordInteractionManager node for handling interactions reply. An Alternative to DiscordMessageManager, but with some specific interactions capabilities.
* Feature - edit interactions replies, edit ephemeral interactions, respond autocomplete interactions.
* Deprecation/Breaking changes - Automatic response for interactions: With DiscordInteractionManager, the node DiscordInteractions always defers replies and updates. It's mandatory add a discordInteractionManager to modify interaction state (default by discord "Bot is thinking...").
* Feature - edit interactions replies, edit ephemeral interactions, respond autocomplete interactions.
* Options for Update or reply components interactions

## 3.4.5
Expand Down
7 changes: 4 additions & 3 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,29 @@ The [Wiki](https://github.com/Markoudstaal/node-red-contrib-discord-advanced/wik

## Nodes

node-red-contrib-discord-advanced gives you access to 8 nodes:
node-red-contrib-discord-advanced gives you access to 9 nodes:

* **discordMessage** is a node with no inputs and one output allowing you to receive notifications of incoming messages.
* **discordMessageManager** allows (embed) messages to be sent to either channels or privatly to user. It also allows for editing and deleting of (embed) messages.
* **discordReactionManager** that allows you to listen to reactions on a message.
* **discordPermissions** allows you to check the permissions of a specifc user. This is useful when you get the user from another source than the discordMessage node. discorPermissions lets you to add role to an user and to remove role.
* **discordClient** is an advanced deprecated node with one input and one output allowing you to inject a references to a [Discord.js Client](https://discord.js.org/#/docs/main/stable/class/Client) into a message. This node can cause node-red to crash if you use it improperly, so take caution. Messages containing a Discord.js Client reference can *not* be forked (e.g. sent to two nodes), so you'll have to manually remove the reference to the Client via a function node using `delete msg.discord`.
* **discordInteraction** allows you to listen to commands, buttons and select menu interactions and to decide how to respond to them.
* **discordInteractionManager** allows you to edit interactions by id.
* **discordChannelName** allows you to change a channel's name.
* **discordMember** listens when a user joins or leaves a guild.

## Changelog

See `CHANGELOG.md` for more info, including information regarding breaking changes per version.

## Key Migration points from 3.4.x to 3.5.0
## Key migration points from 3.4.x to 3.5.0
### Native behavior of discord interactions
When a command is sent by an user, discord displays messages like "Bot is thinking...". Versions < 3.4 of node-red-contrib-discord-advanced manage this interaction by replying with a default text message.
From 3.5.0, this library always defers replies and updates, keeping in memory the reference to the interaction in order to interact moments later within the flow with the new node discordInteractionManager.

### Replacing discordMessageManager for discordInteractionManager
Now all interactions are replied with discordInteractionManager node, so there are several scenarios for having in mind. This is a breaking change. It's needed to take a look on examples.
Now all interactions are replied with discordInteractionManager node, so there are several scenarios for having in mind. This is a breaking change. It's mandatory to take a look on examples to prevent breaking flows.

[Examples](www.link.com)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-discord-advanced",
"version": "3.4.5",
"version": "3.5.0",
"description": "Recieve, send, edit, reply, react to and delete Discord messages, handle interactions and much more in Node-RED.",
"main": "discord/discord.js",
"scripts": {
Expand Down

0 comments on commit 5ab39d7

Please sign in to comment.