PATCH /accounts/{id}/discord-settings
Default webhook identity (webhookUsername 1-80 characters without "discord"/"clyde", webhookAvatarUrl https; "" resets) and/or channelId: move the account to another text, announcement or forum channel of the same server (the bot creates a webhook there)
BearerAuthAuthorizationBearer <token>API key sk_...
id*stringAccount id
application/json- body
webhookUsername?stringwebhookAvatarUrl?stringchannelId?string{message, account}
application/json- response
message?stringaccount?curl -X PATCH 'https://example.com/api/v1/accounts/string/discord-settings' \ -H 'Content-Type: application/json' \ -d '{}'{ "message": "string", "account": { "_id": "string", "id": "string", "platform": "discord", "connection": "bot", "username": "string", "displayName": "string", "profilePicture": "string", "channelId": "string", "channelName": "string", "channelType": "string", "guildId": "string", "webhookUsername": "string", "webhookAvatarUrl": "string" }}GET /accounts/{id}/discord-settings GET
Connected channel and server, and the default webhook identity of every post
GET /discord/channels/{channelId}/pins GET
Pinned messages of the channel (at most 50, most recent first; Discord message objects). Every call takes accountId: a Discord account of the organization bound to that server (404 otherwise). Discord's 403 (bot permissions or role hierarchy) is passed on; servers that installed the bot before a permission was asked for must re-invite it