{"id":20898825,"url":"https://github.com/metafam/node-red-node-discord","last_synced_at":"2026-02-15T02:01:21.913Z","repository":{"id":42866104,"uuid":"259156545","full_name":"MetaFam/node-red-node-discord","owner":"MetaFam","description":"Discord nodes for NodeRed","archived":false,"fork":false,"pushed_at":"2022-03-26T14:34:36.000Z","size":176,"stargazers_count":1,"open_issues_count":6,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-06T07:19:46.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MetaFam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-26T23:38:04.000Z","updated_at":"2020-05-26T01:40:30.000Z","dependencies_parsed_at":"2022-09-03T07:01:31.447Z","dependency_job_id":null,"html_url":"https://github.com/MetaFam/node-red-node-discord","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MetaFam/node-red-node-discord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MetaFam%2Fnode-red-node-discord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MetaFam%2Fnode-red-node-discord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MetaFam%2Fnode-red-node-discord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MetaFam%2Fnode-red-node-discord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MetaFam","download_url":"https://codeload.github.com/MetaFam/node-red-node-discord/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MetaFam%2Fnode-red-node-discord/sbom","scorecard":{"id":92924,"data":{"date":"2025-08-11","repo":{"name":"github.com/MetaFam/node-red-node-discord","commit":"66b695efcf4615b18723432f4c82488534a20ee2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T08:14:53.331Z","repository_id":42866104,"created_at":"2025-08-15T08:14:53.331Z","updated_at":"2025-08-15T08:14:53.331Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29465397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"online","status_checked_at":"2026-02-15T02:00:07.449Z","response_time":118,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T11:12:18.684Z","updated_at":"2026-02-15T02:01:21.876Z","avatar_url":"https://github.com/MetaFam.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-red-node-discord\nInspired by [node-red-contrib-discord](https://github.com/jorisvddonk/node-red-contrib-discord)\nForked from [node-red-node-discord](https://github.com/madmax3365/node-red-node-discord)\n\nNode-red nodes that allow you to interact with Discord, via [Discord.js](https://discord.js.org).\nCan be used to implement simple write/read Bots\n\n# Installation\n\nRun the following command in `~/.node-red`:\n\n    npm install @metafam/node-red-node-discord\n\n# Nodes\n\nnode-red-node-discord gives you access to following nodes:\n\n* discord-get-messages is a node with no inputs and one output allowing you to receive notifications of incoming messages.\n* discord-get-emoji-reactions is a node with no inputs and one output allowing you to receive notifications when user reacts on message with emoji.\n* discord-send-messages is a node with one input and no outputs allowing you to send messages to a Discord channel.\n* discord-members-monitoring is a node with one input and output, designed to get all channels and their's members for metrics.\n\n## discord-get-messages\n- Triggers whenever a message was received on Discord\n- You can pass list of channels to listen to\n\t**Note :** valid channel list example `#1245#general#1234567#another-channel`\n-\t`msg.payload` will be set to the textual content of the message\n- `msg.channel` will be set to an Object containing info on the [channel](https://discord.js.org/#/docs/main/stable/class/Channel) the message was received from (does not contain any discord.js functions)\n-\t`msg.author` will be set to an Object containing info on the [user](https://discord.js.org/#/docs/main/stable/class/User) that sent the message (does not contain any discord.js functions)\n-\t`msg.attachments` will be set to `Array` containing attachments info in format \n  ```typescript\n{\n\tfilename: string, // Filename\n\thref: string // File Url generated by Discord\n}\n  ```\n- `msg.rawData` will be set to an Object containing info on the [message](https://discord.js.org/#/docs/main/stable/class/Message) that was received, but again without any of the discord.js functions\n- To reply to a message, use the `discord-send-messages` node.\n\n## discord-send-messages\n- Sends `msg.payload` on Discord channel with id `msg.channel`\n  You can pass channel name in `msg.channel` as well as id, i.e. `general` \u003cbr\u003e\n  **Note:** this feature possibly can cause sending message to wrong channel if bot connected to multiple servers and there are same named channels\n- Feel free to **@mention** people in `message.payload` \u003cbr\u003e\n  **Example:** `Hello @Gago, nice module :)` , also you can use `@here, @everyone` mentions\n- To use discord's rich text embed specify `msg.rich` with following content (props marked with ? are not required)\n     ```typescript\n  {\n        title?: string;\n        description?: string;\n  \t    url?: string;\n  \t    color?: ColorResolvable;\n  \t    timestamp?: number | Date;\n  \t    footer?: {\n    \t            icon?: string;\n    \t            text: string;\n \t              };\n  \t    thumbnail?: string;\n  \t    author: {\n   \t              name: string;\n                  icon?: string;\n                  url?: string;\n                };\n\n  \t    attachments?: Attachment[];\n  \t    field?: {\n                  name: string;\n                  value: string;\n                  inline?: boolean;\n\t              };\n  \t    fields?: [\n                    {\n                      name: string;\n                      value: string;\n                      inline?: boolean;\n                    }\n\t              ];\n  }\n    ```\n- `msg.attachments` contains attachments to send, it must be array containing objects in format\n  ```typescript\n  {\n     name: string;\n     file: string | Buffer | Stream;\n  }\n  ```\n  \n  ## discord-members-monitoring\n  - Triggered from outside, for now doesn't provide any configuration options\n  - Set's monitored data to `msg.monitoringData` with following content\n  ```typescript\n  {\n  [category: string]: [\n  \t{\n  \tid: string;\n  \tchannelName: string;\n  \tmembers: [\n  \t\t{\n  \t\tid: string;\n  \t\tusername: string;\n  \t\tjoinedDate: Date;\n  \t\tpermissions: PermissionString[];\n  \t\troles: [\n  \t\t\t{\n   \t\t\tid: string;\n  \t\t\tname: string;\n  \t\t\tpermissions: number;\n  \t\t\t}\n  \t\t\t]\n  \t\t}\n  \t\t]\n  \t}\n  \t]\n  }\n  ```\n\n# Troubleshooting\n\nHere is some known issues and workarounds for them\n\n**UnhandledPromiseRejectionWarning: TypeError: Cannot assign to read only property 'writeQueueSize' of object '#\u003cTCP\u003e'**\n\nOutgoing 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 \navoid the issue by ensuring the output from the node isn't branched (going to multiple nodes).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetafam%2Fnode-red-node-discord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetafam%2Fnode-red-node-discord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetafam%2Fnode-red-node-discord/lists"}