GET /discord/guilds/{guildId}/roles
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
BearerAuthAuthorizationBearer <token>API key sk_...
guildId*stringDiscord server (guild) id
accountId*stringDiscord account id bound to this server (or the channel's server)
{data}
application/json- response
data?array<>curl -X GET 'https://example.com/api/v1/discord/guilds/string/roles?accountId=string'{ "data": [ { "id": "string", "name": "string", "color": 0, "position": 0, "permissions": "string", "managed": true, "mentionable": true, "hoist": true } ]}POST /discord/channels/{channelId}/messages/{messageId}/crosspost POST
Publish an announcement-channel message to every following server (400 before Discord is called when the channel is not an announcement channel)
POST /discord/guilds/{guildId}/roles POST
Create a role (needs Manage Roles; it cannot sit at or above the bot's highest role)