Skip to content

Installation and setup

Kai edited this page Jun 20, 2023 · 2 revisions

installation

To install this package of nodes you have 2 options.

Node-RED library

Open the node pallet manager via the hamburger menu in the top right and then clicking 'Manage palette'. Next open the 'Install' tab and in the searchbar type 'node-red-contrib-discord-advanced'. This package should show up from where you can press install and the nodes will be added to your pallet on the left side of Node-RED.

NPM

To install the package with npm you'll have to open a command prompt and change directory to the Node-RED folder. This should be ~/.node-red. From there you can enter the following command:

npm install node-red-contrib-discord-advanced

Setup

Getting a token

To setup this package you'll need a token for your BOT. To find out how to get a token you can follow this guide.

Entering your token

To enter your token, drag any of the Discord nodes onto your flow. Then double-click on it. You'll see the following:

Press the edit button on the right to add a new token. The following windows will open:

Here you can enter your token in the first field and give it a name in the second. After pressing 'Add' in the top right this token will become available for all discord nodes you add to your flow after. Therefore you only need to enter the token once.