![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@metafam/node-red-node-discord
Advanced tools
Inspired by node-red-contrib-discord
Node-red nodes that allow you to interact with Discord, via Discord.js. Can be used to implement simple write/read Bots
Run the following command in ~/.node-red
:
npm install node-red-node-discord
node-red-node-discord gives you access to following nodes:
#1245#general#1234567#another-channel
msg.payload
will be set to the textual content of the messagemsg.channel
will be set to an Object containing info on the channel the message was received from (does not contain any discord.js functions)msg.author
will be set to an Object containing info on the user that sent the message (does not contain any discord.js functions)msg.attachments
will be set to Array
containing attachments info in format{
filename: string, // Filename
href: string // File Url generated by Discord
}
msg.rawData
will be set to an Object containing info on the message that was received, but again without any of the discord.js functionsdiscord-send-messages
node.Sends msg.payload
on Discord channel with id msg.channel
You can pass channel name in msg.channel
as well as id, i.e. general
Note: this feature possibly can cause sending message to wrong channel if bot connected to multiple servers and there are same named channels
Feel free to @mention people in message.payload
Example: Hello @Gago, nice module :)
, also you can use @here, @everyone
mentions
To use discord's rich text embed specify msg.rich
with following content (props marked with ? are not required)
{
title?: string;
description?: string;
url?: string;
color?: ColorResolvable;
timestamp?: number | Date;
footer?: {
icon?: string;
text: string;
};
thumbnail?: string;
author: {
name: string;
icon?: string;
url?: string;
};
attachments?: Attachment[];
field?: {
name: string;
value: string;
inline?: boolean;
};
fields?: [
{
name: string;
value: string;
inline?: boolean;
}
];
}
msg.attachments
contains attachments to send, it must be array containing objects in format
{
name: string;
file: string | Buffer | Stream;
}
msg.monitoringData
with following content{
[category: string]: [
{
id: string;
channelName: string;
members: [
{
id: string;
username: string;
joinedDate: Date;
permissions: PermissionString[];
roles: [
{
id: string;
name: string;
permissions: number;
}
]
}
]
}
]
}
Here is some known issues and workarounds for them
UnhandledPromiseRejectionWarning: TypeError: Cannot assign to read only property 'writeQueueSize' of object '#'
Outgoing node message has a TCP stream which can't be cloned. This needs to be fixed in a future release but for now you can avoid the issue by ensuring the output from the node isn't branched (going to multiple nodes).
FAQs
Discord nodes for recieving / sending messages.
We found that @metafam/node-red-node-discord demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.