Discord

Version Latest

This is the documentation of the new Discord app.
Here is the documentation of the legacy Discord (legacy) app.

The Discord modules allow you to create, update, list, and/or delete channels, channel messages, reactions, webhooks in your Discord account.

Prerequisites

  • A Discord account

In order to use Discord with Integromat, it is necessary to have a Discord account. If you do not have one, you can create a Discord account at https://discordapp.com/register?.

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting Discord to Integromat

To connect your Discord account to Integromat, you need to create a server and channels.

1. Login to your Discord account and create a server.

SQFsV8ZYy0.gif

2. Enter the details of the server and click Create.

3. Go to Integromat and open the Discord module's Create a connection dialog.

7M0ZS7OFGo.gif

4. Select the server created in step 1, allow the permissions for messages and channels, and click Authorize.

IhWskV2Zoe.png

The connection has been established.

Messages

Post a Message

Posts a message.

ConnectionEstablish a connection to your Discord App account. 
ContentEnter the message text.
moduleWebhookUrlEnter the webhook URL address to post the message.

Post a Message with Embed Objects

Posts a message with embedded objects.

ConnectionEstablish a connection to your Discord App account. 
ContentEnter the message text.
Array of embedded objectsEnter the details of the embedded objects.

Post a Message with a File

Posts a message with an attached file.

ConnectionEstablish a connection to your Discord App account. 
ContentEnter the message text.
Source File

Select the file to attach to the message you want to post:

  • Dropbox - Get a file
  • Map

Get a Message

Returns a specific message in the channel.

ConnectionEstablish a connection to your Discord App account. 
Channel IDSelect the Channel ID whose messages you want to retrieve.
Message IDSelect the Message ID whose details you want to retrieve.

Delete a Message

Deletes a message.

ConnectionEstablish a connection to your Discord App account. 
Channel IDEnter the Channel ID whose message you want to delete.
Message IDEnter the Message ID you want to delete.

List Channel Messages

Returns the message for the channel.

ConnectionEstablish a connection to your Discord App account. 
Channel IDSelect the Channel ID whose messages you want to list.
LimitThe maximum number of messages Integromat should return during one scenario execution cycle.

Watch Channel Messages

Triggers when a new message is posted to the channel.

ConnectionEstablish a connection to your Discord App account. 
Channel IDSelect the Channel ID whose message you want to watch.
LimitThe maximum number of channel messages Integromat should return during one scenario execution cycle.

Channels

Create a Guild Channel

Creates a new channel for the guild.

ConnectionEstablish a connection to your Discord App account. 
NameEnter the name for the guild channel.
Type

Select the type of guild channel:

  • Guild text
  • DM
  • Guild voice
  • Guild DM
  • Guild Category
  • Guild News
  • Guild store
TopicEnter the topic name for the guild channel.
Permission Overwrites

Add the permission overwrites for the channel:

  • Role ID

    Select the Role ID of the user.

  • Allow permission bit set

    Enter the number of permission bit set to allow.

  • Deny permission bit set

    Enter the number of permission bit set to deny.

PositionEnter the sorting position of the guild channel.
Rate Limit Per UserEnter the number of seconds the user has to wait before sending the next message in the guild channel.
Parent ID

Select the Parent ID of the guild channel:

  • Text Channel
  • Voice Channel
NSFW Channel

Select Yes if this guild channel is NSFW (Not Suitable For Wumpus).

  • Yes
  • No
  • Not defined

For more information on NSFW, see NSFW Channels and Content.

Create a Channel Invite

Creates a new invite for the channel. It works only with a connection that has permissions to manage invites.

ConnectionEstablish a connection to your Discord App account. 
Channel IDSelect the Channel ID whose invite you want to create.
Max age

Enter the maximum duration after which the invite expires.

Enter the duration of invite in seconds before expiry, or 0 for never. Note: 86400 is 24 hours

Max uses

Enter the maximum number of time the channel invite can be used.

Enter Zero for unlimited.

Is temporary?Select if this channel invite gives a temporary membership.
Is unique?Select if this channel invites can be used only once. If selected, you cannot create a similar channel invite.

Modify a Channel

Updates a channel's settings.

ConnectionEstablish a connection to your Discord App account. 
Channel IDEnter the Channel ID you want to modify.
NameEnter a new name for the channel.
TypeSelect the channel type.
TopicEnter a topic for the channel.
PositionEnter the channel sorting position of the guild channel.
Rate Limit per UserEnter the time in seconds a user has to wait before sending another message (0-21600).
Parent ID

Select the Parent ID of the guild channel:

  • Text Channel
  • Voice Channel
NSFW Channel

Select Yes if this guild channel is NSFW (Not Suitable For Wumpus).

  • Yes
  • No
  • Not defined

For more information on NSFW, see NSFW Channels and Content.

Permission Overwrites

Add the permissions for members to overwrite:

Role ID

Select the role or members to whom you want to assign the permission.

Allow Permission Bit Set

Enter the permission allowed in a bit set.

Deny Permission Bit Set

Enter the permission denied in a bit set.

BitrateEnter the bitrate (in bits) if this is a voice channel.
User LimitEnter the maximum number of users you can add to the channel.

Delete a Channel

Deletes a channel.

ConnectionEstablish a connection to your Discord App account. 
Channel IDSelect the Channel ID you want to delete.

List Channel Invites

Returns a list of invites (with invite metadata) for the channel.

ConnectionEstablish a connection to your Discord App account. 
Channel IDSelect the Channel ID whose channel invite you want to list.
LimitThe maximum number of channel invites Integromat should return during one scenario execution cycle

List Channels

Returns a list of bot's channels.

ConnectionEstablish a connection to your Discord App account. 
Channel IDSelect the Channel ID whose bot's channels you want to list.
LimitThe maximum number of channels Integromat should return during one scenario execution cycle

Watch Channel Invites

Triggers when a new channel invite is created.

ConnectionEstablish a connection to your Discord App account. 
Channel IDSelect the Channel ID whose channel invites you want to watch.
LimitThe maximum number of channel invites Integromat should return during one scenario execution cycle

Reactions

Post a Reaction with an Emoji

Post a reaction for the message with an emoji.

ConnectionEstablish a connection to your Discord App account. 
Channel IDSelect the Channel ID where you want to post a reaction with an emoji.
Message IDEnter the Message ID that you want to post a reaction with an emoji.
EmojiEnter the emoji to post as a reaction to the message.

Members

List Guild Members

Returns a list of members that are members of the bot's guild.

ConnectionEstablish a connection to your Discord App account. 
LimitThe maximum number of Guild Members Integromat should return during one scenario execution cycle.

List Users that Reacted with the Emoji

Returns a list of users that reacted with the emoji.

ConnectionEstablish a connection to your Discord App account. 
Channel IDSelect the Channel ID of the users who reacted with an emoji that you want to list.
LimitThe maximum number of users Integromat should return during one scenario execution cycle.
Message IDSelect the Message ID that has the reaction with an emoji that you want to list the users of.
EmojiEnter the emoji you want to list.

Watch Guild Members

Triggers when a member has joined the bot's guild.

ConnectionEstablish a connection to your Discord App account. 
LimitThe maximum number of guild members Integromat should return during one scenario execution cycle

Add a Role to a Guild Member

Adds a Role to a Guild Member.

ConnectionEstablish a connection to your Discord App account. 
User IDSelect the User ID whose role you want to add to a guild member.
Role IDSelect the Role ID of the user you want to add.

Remove a Role from a Guild Member

Removes a role from a guild member,

ConnectionEstablish a connection to your Discord App account. 
User IDSelect the User ID whose role you want to remove from a guild member.
Role IDSelect the Role ID of the user you want to remove.

Webhooks

Create a webhook

Creates a new webhook.

ConnectionEstablish a connection to your Discord App account. 
Channel IDSelect the Channel ID whose webhook you want to create.
NameEnter a name for the webhook.

Execute a webhook

Executes a webhook.

ConnectionEstablish a connection to your Discord App account. 
Channel IDSelect the Channel ID whose webhook you want to execute.
NameEnter the webhook name you want to execute.

Delete a Webhook

Deletes a webhook permanently

ConnectionEstablish a connection to your Discord App account. 
IDEnter the Webhook ID you want to delete.

Make an API Call

Performs an arbitrary authorized API call to manage data in Discord.

ConnectionEstablish a connection to your Discord App account. 
URL

Enter a path relative to https://discordapp.com/api.

For the list of available endpoints, refer to the Discord API Documentation.
Method

Select the HTTP method you want to use:

GET
to retrieve information for an entry.

POST
to create a new entry.

PUT
to update/replace an existing entry.

PATCH
to make a partial entry update.

DELETE
to delete an entry.

HeadersEnter the desired request headers. You don't have to add authorization headers; we already did that for you.
Query StringEnter the request query string.
Body TypeSelect the method in which you want to map the body content.
BodyEnter the body content for your API call.

Example of Use - Get User

The following API call returns all the information about the selected user:

URL:
 /users/@me

Method:
GET

discord.png

Matches of the search can be found in the module's Output under BundleBody
In our example, the details of the user were returned:

discord1.png

Popular use cases from our blog

automated-data-collection-crm-illustration

How to Automate Data Collection - Part 5: CRM Systems

automated-data-collection-chatbot-marketing-illustration

How to Automate Data Collection - Part 4: Chatbot Marketing

automated-data-collection-paid-ads-illustration

How to Automate Data Collection - Part 3: Paid Ads

automated-data-collection-email-illustration

How to Automate Data Collection - Part 2: Email Marketing Segmentation

personalized-customer-experience-illustration-integromat

5 Automated Solutions to Personalize Customer Experience

data-collection-automation-forms-pt-1

How to Automate Data Collection - Part 1: Online Forms

Didn’t find what you were looking for?

Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.