Discord

Actions

The Discord node allows you to automate work in Discord, and integrate Discord with other applications. n8n has built-in support for a wide range of Discord features, including sending messages in a Discord channel.

On this page, you'll find a list of operations the Discord node supports and links to more resources.

Credentials

Refer to Discord credentials for guidance on setting up authentication.

Examples and templates

For usage examples and templates to help you get started, take a look at n8n's Discord integrations list.

Basic Operations#

  • Send messages in a Discord Channel

Example Usage#

This workflow allows you to send a message to a Discord channel using webhooks. You can also find the workflow on this website. This example usage workflow would use the following two nodes. - Start - Discord

The final workflow should look like the following image.

A workflow with the Discord node

1. Start node#

The start node exists by default when you create a new workflow.

2. Discord node#

  1. First of all, you'll have to create a webhook for the Discord node. You can find out how to do that here.
  2. Paste your webhook into the Webhook URL field.
  3. Enter your message in the Text field.
  4. Click on Execute Node to run the workflow.

Sending a message to a Discord channel using the Discord node

 
 

Credentials

You can follow these instructions to create a webhook in Discord to use with the following nodes.

Prerequisites#

Create a Discord account.

Creating a webhook in Discord#

  1. To create a webhook in Discord that sends content to your channel, go to the settings of your channel.
  2. Select 'Integrations' from the sidebar.
  3. Click on the Create Webhook button.
  4. Name your bot, and click on the Copy Webhook URL button to copy the webhook URL.
  5. Back in n8n, use the copied webhook URL in your Discord node.

How to create a webhook in Discord