Merge branch 'smamudhan-kanban-discord'

This commit is contained in:
Tanay Pant 2020-08-27 14:29:59 +02:00
commit 0a6ec6e530
3 changed files with 22 additions and 16 deletions

View File

@ -10,13 +10,23 @@ You can find information about the operations supported by the Discord node on t
Create a [Discord](https://www.discord.com/) account.
## Using OAuth
## Create 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 'Webhooks' from the sidebar.
3. Click on 'Create Webhook'.
4. Name your bot, copy the 'Webhook URL', and click on the ***Save*** button.
4. Back in n8n, use the Webhook URL in your Discord Node.
![How to create a webhook in Discord](./gif-of-webhooks-in-discord.gif)
<!-- ## Using OAuth
1. Access this [Discord Developer Portal](https://discord.com/developers/applications).
2. Click on "New Application".
3. Enter name and click "Create".
3. Enter the name and click "Create".
4. Use Client Secret and Client ID in your Discord node credentials in n8n.
5. Enter n8n provided redirect URL in configuration. ![Redirect URL Explanation here](../README.md).
5. Enter n8n provided redirect URL in the configuration. ![Redirect URL Explanation here](../README.md).
![Getting Discord credentials](./using-oauth.gif)
![Getting Discord credentials](./using-oauth.gif) -->

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

View File

@ -4,10 +4,10 @@ permalink: /nodes/n8n-nodes-base.discord
# Discord
[Discord](https://discord.com/) is a voice, video, and text communications platform for groups. Discord allows users to programatically send messages using webhooks.
[Discord](https://discord.com/) is a voice, video, and text communications platform for groups. Discord allows users to programmatically send messages using webhooks.
::: tip 🔑 Credentials
The Discord node does not require authentication, but you must have access to a channel's settings to use webhooks.
The Discord node does not require authentication, but you must have access to a channel's settings to use webhooks. You can find out how to create a webhook in Discord [here](../../../credentials/Discord/README.md).
:::
## Basic Operations
@ -17,7 +17,7 @@ The Discord node does not require authentication, but you must have access to a
## Example Usage
This workflow allows you to send a message to a Discord channel using webhooks. You can also find the [workflow](https://n8n.io/workflows/410) on this website. This example usage workflow would use the following two nodes.
- [Start](../../core-nodes/Start)
- [Start](../../core-nodes/Start/README.md)
- [Discord]()
The final workflow should look like the following image.
@ -28,13 +28,9 @@ The final workflow should look like the following image.
The start node exists by default when you create a new workflow.
### 2. Discord Node
### 2. Discord node
1. In order to create a Discord webhook that sends content to your channel, go to the settings of your channel.
2. Click Webhooks.
3. Name your bot and copy the link of the webhook.
4. Back on n8n, paste your webhook into the *Webhook URL* field of the Discord Node.
5. Enter your message in the *Text* field.
6. Click on *Execute Node* to run the workflow. :tada:
![GIF of Webhooks in Discord](./gif-of-webhooks-in-discord.gif)
1. First of all, you'll have to create a webhook for the Discord node. You can find out how to do that [here](../../../credentials/Discord/README.md).
2. Paste your webhook into the ***Webhook URL*** field.
5. Enter your message in the ***Text*** field.
6. Click on ***Execute Node*** to run the workflow.