Skip to content

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

NameLabelTypeControl TypeDescriptionRequired
tokenBot tokenSTRINGTEXTtrue

Actions

Send Channel Message

Name: sendChannelMessage

Post a new message to a specific #channel you choose.

Properties

NameLabelTypeControl TypeDescriptionRequired
guildIdGuild IDSTRINGSELECTtrue
channelIdChannel IDSTRING
Depends On guildId
SELECTID of the channel where to send the message.true
__itemMessageOBJECT
Properties {STRING(content), BOOLEAN(tts)}
OBJECT_BUILDERnull

Output

Type: OBJECT

Properties

NameTypeControl Type
bodyOBJECT
Properties {STRING(id), STRING(content), BOOLEAN(tts)}
OBJECT_BUILDER

JSON Example

{
"label" : "Send Channel Message",
"name" : "sendChannelMessage",
"parameters" : {
"guildId" : "",
"channelId" : "",
"__item" : {
"content" : "",
"tts" : false
}
},
"type" : "discord/v1/sendChannelMessage"
}

Create Channel

Name: createChannel

Create a new channel

Properties

NameLabelTypeControl TypeDescriptionRequired
guildIdGuild IDSTRINGSELECTtrue
__itemChannelOBJECT
Properties {STRING(name), INTEGER(type)}
OBJECT_BUILDERnull

Output

Type: OBJECT

Properties

NameTypeControl Type
bodyOBJECT
Properties {STRING(id), INTEGER(type), STRING(name)}
OBJECT_BUILDER

JSON Example

{
"label" : "Create Channel",
"name" : "createChannel",
"parameters" : {
"guildId" : "",
"__item" : {
"name" : "",
"type" : 1
}
},
"type" : "discord/v1/createChannel"
}

Send Direct Message

Name: sendDirectMessage

Send direct message guild member.

Properties

NameLabelTypeControl TypeDescriptionRequired
guildIdGuild IDSTRINGSELECTtrue
recipient_idRecipientSTRING
Depends On guildId
SELECTThe recipient to open a DM channel with.true
contentMessage TextSTRINGTEXTMessage contents (up to 2000 characters)true
ttsText to SpeechBOOLEAN
Options true, false
SELECTTrue if this is a TTS messagefalse

Output

Type: OBJECT

Properties

NameTypeControl Type
bodyOBJECT
Properties {STRING(id)}
OBJECT_BUILDER

JSON Example

{
"label" : "Send Direct Message",
"name" : "sendDirectMessage",
"parameters" : {
"guildId" : "",
"recipient_id" : "",
"content" : "",
"tts" : false
},
"type" : "discord/v1/sendDirectMessage"
}

Additional instructions


anl-c-discord-md

CONNECTION

Setting up OAuth2