POST /discord/channels/{channelId}/messages/{messageId}/crosspost
Publish an announcement-channel message to every following server (400 before Discord is called when the channel is not an announcement channel)
BearerAuthAuthorizationBearer <token>API key sk_...
channelId*stringDiscord channel id (snowflake)
messageId*stringDiscord message id
accountId*stringDiscord account id bound to this server (or the channel's server)
Done
application/json- response
data?The crossposted message
curl -X POST 'https://example.com/api/v1/discord/channels/string/messages/string/crosspost?accountId=string'{ "data": {}}DELETE /discord/channels/{channelId}/messages/{messageId} DELETE
Delete a message in the channel (any author: needs Manage Messages). Cannot be undone
GET /discord/guilds/{guildId}/roles GET
Every role of the server (unordered; sort by position). 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