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 |
---|---|---|
id | STRING | |
content | STRING | |
tts | BOOLEAN Optionstrue, false |
Output Example
{ "id" : "", "content" : "", "tts" : 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 | |
type | INTEGER | |
name | STRING |
Output Example
{ "id" : "", "type" : 1, "name" : ""}
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 |
---|---|---|
body | OBJECT Properties{STRING(id)} |
Output Example
{ "body" : { "id" : "" }}