Mutations
sendDiscordMessage
Sends an outbound Discord message on a thread. Requires both a workspace-level Discord channel integration and a personal user auth integration for the sending user. The message is posted into the Discord thread associated with the Plain thread.
MUTATION
sendDiscordMessage(input: SendDiscordMessageInput!): SendDiscordMessageOutput!Arguments
input
required
Returns
discordMessage
error
Mutation
mutation SendDiscordMessage($input: SendDiscordMessageInput!) {
sendDiscordMessage(input: $input) {
discordMessage {
discordMessageId
markdownContent
attachments {
id
fileName
fileSize {
__typename
}
fileExtension
fileMimeType
type
}
lastEditedOnDiscordAt {
unixTimestamp
iso8601
}
deletedOnDiscordAt {
unixTimestamp
iso8601
}
discordMessageLink
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadId": "id"
}
}Response
{
"data": {
"sendDiscordMessage": {
"discordMessage": {
"discordMessageId": "id",
"markdownContent": "string",
"attachments": [
{
"id": "id",
"fileName": "string",
"fileSize": {
"__typename": "FileSize"
},
"fileExtension": "string",
"fileMimeType": "string",
"type": "EMAIL"
}
],
"lastEditedOnDiscordAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"deletedOnDiscordAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"discordMessageLink": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?
⌘I
Mutation
mutation SendDiscordMessage($input: SendDiscordMessageInput!) {
sendDiscordMessage(input: $input) {
discordMessage {
discordMessageId
markdownContent
attachments {
id
fileName
fileSize {
__typename
}
fileExtension
fileMimeType
type
}
lastEditedOnDiscordAt {
unixTimestamp
iso8601
}
deletedOnDiscordAt {
unixTimestamp
iso8601
}
discordMessageLink
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadId": "id"
}
}Response
{
"data": {
"sendDiscordMessage": {
"discordMessage": {
"discordMessageId": "id",
"markdownContent": "string",
"attachments": [
{
"id": "id",
"fileName": "string",
"fileSize": {
"__typename": "FileSize"
},
"fileExtension": "string",
"fileMimeType": "string",
"type": "EMAIL"
}
],
"lastEditedOnDiscordAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"deletedOnDiscordAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"discordMessageLink": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}
