ByteChef LogoByteChef
Components

Discord

Discord is a communication platform designed for creating communities, chatting with friends, and connecting with others through text, voice, and video channels.

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

NameLabelTypeDescriptionRequired
tokenBot tokenSTRINGtrue

Actions

Send Channel Message

Name: sendChannelMessage

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

Properties

NameLabelTypeDescriptionRequired
guildIdGuild IDSTRINGtrue
channelIdChannel IDSTRING Depends On guildId ID of the channel where to send the message.true
contentMessage TextSTRINGMessage contents (up to 2000 characters)true
ttsText to SpeechBOOLEAN Options true, false True if this is a TTS messagefalse

Example JSON Structure

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

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRING
contentSTRING
ttsBOOLEAN Options true, false

Output Example

{
  "id" : "",
  "content" : "",
  "tts" : false
}

Create Channel

Name: createChannel

Create a new channel

Properties

NameLabelTypeDescriptionRequired
guildIdGuild IDSTRINGtrue
nameNameSTRINGThe name of the new channeltrue
typeTypeINTEGER Options 0, 2, 4 false

Example JSON Structure

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

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRING
typeINTEGER
nameSTRING

Output Example

{
  "id" : "",
  "type" : 1,
  "name" : ""
}

Send Direct Message

Name: sendDirectMessage

Send direct message guild member.

Properties

NameLabelTypeDescriptionRequired
guildIdGuild IDSTRINGtrue
recipient_idRecipientSTRING Depends On guildId The recipient to open a DM channel with.true
contentMessage TextSTRINGMessage contents (up to 2000 characters)true
ttsText to SpeechBOOLEAN Options true, false True if this is a TTS messagefalse

Example JSON Structure

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

Output

Type: OBJECT

Properties

NameTypeDescription
bodyOBJECT Properties {STRING(id)}

Output Example

{
  "body" : {
    "id" : ""
  }
}

Additional instructions

anl-c-discord-md

CONNECTION

Setting up OAuth2