Describe a Discord server
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
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.
1 <= length <= 32The server's id (a snowflake).
^[0-9]{17,20}$17 <= length <= 20A person to check against the server, by the Discord account they linked in notify. Empty skips the check.
length <= 191Response Body
application/json
application/json
curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.TopicService/DescribeDiscordGuild" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"guildId": "string",
"name": "string",
"managerLinked": true,
"manager": true
}Describe a Discord channel POST
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`
Get topic POST
Fetches one topic with the caller's effective capabilities on it (`my_caps`) and whether they follow it. **Unauthenticated callers are allowed** for a topic with `public_subscribe` set; a private topic the caller holds no capability on is not-found rather than denied, so existence cannot be probed.