Describe a Discord channel
Looks a Discord channel up as the bot a sink on this topic would post as (the topic's app's discord_bot credential, else the owner's, else the deployment's) and returns the server it belongs to and its name. A product that lets its own tenants pick a channel uses it to check the channel is in a server that tenant owns before adding the sink, since one bot is usually in many tenants' servers.
FAILED_PRECONDITION when the bot cannot see the channel (not in that server, or no View Channel), INVALID_ARGUMENT for a channel outside any server (a DM). Needs manage on the topic.
Required scopes: notify:topics:read
Authorization
BearerAuth An access token from Xeonr Auth, presented as
Authorization: Bearer <token>. Its audience must include
https://notify.xeonr.io, and it must carry the scope the method
lists.
In: header
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
The topic whose bot looks: the one a sink on it would post as.
1 <= length <= 32The channel's id (a snowflake).
^[0-9]{17,20}$17 <= length <= 20Response Body
application/json
application/json
curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.TopicService/DescribeDiscordChannel" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"channelId": "string",
"guildId": "1180012345678901234",
"name": "string"
}Delete topic POST
Removes the topic and everything hanging off it: its grants, keys, sinks, subscriptions and messages. Needs manage on the topic. Archiving with UpdateTopic is the reversible alternative. **Required scopes:** `notify:topics:edit`
Describe a Discord server POST
Looks a Discord server up as the bot a sink on this topic would post as and returns its name. With `manager_subject`, also says whether that person's linked Discord account owns the server or holds Manage Server or Administrator in it: the proof a product asks for before letting a tenant claim a server, so nobody can claim one they do not run. `FAILED_PRECONDITION` when the bot is not in the server. Needs manage on the topic. **Required scopes:** `notify:topics:read`