Discord
Discord is a communication platform designed for creating communities, chatting with friends, and connecting with others through text, voice, and video channels.
Categories: Communication
Type: discord/v1
Connections
Version: 1
Bearer Token
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
token | Bot token | STRING | true |
Actions
Send Channel Message
Name: sendChannelMessage
Post a new message to a specific #channel you choose.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
guildId | Guild ID | STRING | true | |
channelId | Channel ID | STRING Depends OnguildId | ID of the channel where to send the message. | true |
content | Message Text | STRING | Message contents (up to 2000 characters) | true |
tts | Text to Speech | BOOLEAN Optionstrue, false | True if this is a TTS message | false |
Example JSON Structure
{
"label" : "Send Channel Message",
"name" : "sendChannelMessage",
"parameters" : {
"guildId" : "",
"channelId" : "",
"content" : "",
"tts" : false
},
"type" : "discord/v1/sendChannelMessage"
}
Output
Type: OBJECT
Properties
Name | Type | Description |
---|---|---|
type | INTEGER | Type of the message. |
id | STRING | ID of the message. |
content | STRING | Contents of the message. |
tts | BOOLEAN Optionstrue, false | Whether this was a TTS message. |
mentions | ARRAY Items[{STRING(id), STRING(username)}] | Users specifically mentioned in the message. |
mention_roles | ARRAY Items[{STRING(id), STRING(name)}] | Roles specifically mentioned in this message. |
attachments | ARRAY Items[{STRING(id), STRING(filename), STRING(title), STRING(description), STRING(content_type), INTEGER(size), STRING(url), STRING(proxy_url)}] | Any attached files. |
timestamp | STRING | When this message was sent. |
flags | INTEGER | message flags combined as a bitfield. |
components | ARRAY Items[{}] | Sent if the message contains components like buttons, action rows, or other interactive components. |
channel_id | STRING | ID of the channel the message was sent in. |
author | OBJECT Properties{STRING(id), STRING(username)} | The author of this message. |
pinned | BOOLEAN Optionstrue, false | Whether this message is pinned. |
mention_everyone | BOOLEAN Optionstrue, false | Whether this message mentions everyone. |
Output Example
{
"type" : 1,
"id" : "",
"content" : "",
"tts" : false,
"mentions" : [ {
"id" : "",
"username" : ""
} ],
"mention_roles" : [ {
"id" : "",
"name" : ""
} ],
"attachments" : [ {
"id" : "",
"filename" : "",
"title" : "",
"description" : "",
"content_type" : "",
"size" : 1,
"url" : "",
"proxy_url" : ""
} ],
"timestamp" : "",
"flags" : 1,
"components" : [ { } ],
"channel_id" : "",
"author" : {
"id" : "",
"username" : ""
},
"pinned" : false,
"mention_everyone" : false
}
Create Channel
Name: createChannel
Create a new channel
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
guildId | Guild ID | STRING | true | |
name | Name | STRING | The name of the new channel | true |
type | Type | INTEGER Options0, 2, 4 | false |
Example JSON Structure
{
"label" : "Create Channel",
"name" : "createChannel",
"parameters" : {
"guildId" : "",
"name" : "",
"type" : 1
},
"type" : "discord/v1/createChannel"
}
Output
Type: OBJECT
Properties
Name | Type | Description |
---|---|---|
id | STRING | ID of the channel. |
type | INTEGER | Type of the channel. |
last_message_id | STRING | ID of the last message sent in this channel. |
flags | INTEGER | Channel flags combined as a bitfield. |
guild_id | STRING | ID of the guild to which the channel belongs. |
name | STRING | Name of the channel. |
parent_id | STRING | For guild channels: id of the parent category for a channel |
rate_limit_per_user | INTEGER | Amount of seconds a user has to wait before sending another message |
topic | STRING | Topic of the channel. |
position | INTEGER | Sorting position of the channel (channels with the same position are sorted by id) |
permission_overwrites | ARRAY Items[{STRING(id), INTEGER(type), STRING(allow), STRING(deny)}] | Explicit permission overwrites for members and roles. |
nsfw | BOOLEAN Optionstrue, false | Whether the channel is marked as NSFW (Not Safe For Work). |
Output Example
{
"id" : "",
"type" : 1,
"last_message_id" : "",
"flags" : 1,
"guild_id" : "",
"name" : "",
"parent_id" : "",
"rate_limit_per_user" : 1,
"topic" : "",
"position" : 1,
"permission_overwrites" : [ {
"id" : "",
"type" : 1,
"allow" : "",
"deny" : ""
} ],
"nsfw" : false
}
Send Direct Message
Name: sendDirectMessage
Send direct message guild member.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
guildId | Guild ID | STRING | true | |
recipient_id | Recipient | STRING Depends OnguildId | The recipient to open a DM channel with. | true |
content | Message Text | STRING | Message contents (up to 2000 characters) | true |
tts | Text to Speech | BOOLEAN Optionstrue, false | True if this is a TTS message | false |
Example JSON Structure
{
"label" : "Send Direct Message",
"name" : "sendDirectMessage",
"parameters" : {
"guildId" : "",
"recipient_id" : "",
"content" : "",
"tts" : false
},
"type" : "discord/v1/sendDirectMessage"
}
Output
Type: OBJECT
Properties
Name | Type | Description |
---|---|---|
type | INTEGER | Type of the message. |
id | STRING | ID of the message. |
content | STRING | Contents of the message. |
tts | BOOLEAN Optionstrue, false | Whether this was a TTS message. |
mentions | ARRAY Items[{STRING(id), STRING(username)}] | Users specifically mentioned in the message. |
mention_roles | ARRAY Items[{STRING(id), STRING(name)}] | Roles specifically mentioned in this message. |
attachments | ARRAY Items[{STRING(id), STRING(filename), STRING(title), STRING(description), STRING(content_type), INTEGER(size), STRING(url), STRING(proxy_url)}] | Any attached files. |
timestamp | STRING | When this message was sent. |
flags | INTEGER | message flags combined as a bitfield. |
components | ARRAY Items[{}] | Sent if the message contains components like buttons, action rows, or other interactive components. |
channel_id | STRING | ID of the channel the message was sent in. |
author | OBJECT Properties{STRING(id), STRING(username)} | The author of this message. |
pinned | BOOLEAN Optionstrue, false | Whether this message is pinned. |
mention_everyone | BOOLEAN Optionstrue, false | Whether this message mentions everyone. |
Output Example
{
"type" : 1,
"id" : "",
"content" : "",
"tts" : false,
"mentions" : [ {
"id" : "",
"username" : ""
} ],
"mention_roles" : [ {
"id" : "",
"name" : ""
} ],
"attachments" : [ {
"id" : "",
"filename" : "",
"title" : "",
"description" : "",
"content_type" : "",
"size" : 1,
"url" : "",
"proxy_url" : ""
} ],
"timestamp" : "",
"flags" : 1,
"components" : [ { } ],
"channel_id" : "",
"author" : {
"id" : "",
"username" : ""
},
"pinned" : false,
"mention_everyone" : false
}
What to do if your action is not listed here?
If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.
To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.