Mutation
mutation UpdateConnectedDiscordChannel($input: UpdateConnectedDiscordChannelInput!) {
updateConnectedDiscordChannel(input: $input) {
connectedDiscordChannel {
id
discordGuildId
discordChannelId
name
isEnabled
createdAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"connectedDiscordChannelId": "id"
}
}Response
{
"data": {
"updateConnectedDiscordChannel": {
"connectedDiscordChannel": {
"id": "id",
"discordGuildId": "string",
"discordChannelId": "string",
"name": "string",
"isEnabled": true,
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
updateConnectedDiscordChannel
Updates settings for a connected Discord channel, such as enabling or disabling it. Disabled channels will not receive new messages from Plain.
MUTATION
updateConnectedDiscordChannel(input: UpdateConnectedDiscordChannelInput!): UpdateConnectedDiscordChannelOutput!Arguments
input
required
connectedDiscordChannel
error
Mutation
mutation UpdateConnectedDiscordChannel($input: UpdateConnectedDiscordChannelInput!) {
updateConnectedDiscordChannel(input: $input) {
connectedDiscordChannel {
id
discordGuildId
discordChannelId
name
isEnabled
createdAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"connectedDiscordChannelId": "id"
}
}Response
{
"data": {
"updateConnectedDiscordChannel": {
"connectedDiscordChannel": {
"id": "id",
"discordGuildId": "string",
"discordChannelId": "string",
"name": "string",
"isEnabled": true,
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

