discord
List Discord guild channels
Returns the text, announcement, and forum channels in the connected Discord guild. Use this to discover available channels when switching the connected channel via PATCH /v1/accounts/{accountId}/discord-settings.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
accountIdstring
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.discord.getDiscordChannels({ path: { accountId: 'account_abc123', },});console.log(data);{
"channels": [
{
"id": "1234567890123456789",
"name": "general",
"type": 0
},
{
"id": "2345678901234567890",
"name": "announcements",
"type": 5
},
{
"id": "3456789012345678901",
"name": "feedback",
"type": 15
}
]
}Empty
{
"error": "Unauthorized"
}Empty
Replace services PUT
Replaces the entire service list for a location. Google's API requires full replacement; individual item updates are not supported. Each service can be structured (using a predefined serviceTypeId) or free-form (custom label).
Get Discord account settings GET
Returns the current Discord account settings including webhook identity (display name and avatar), connected channel, and guild information.