Skip to Content
Xeonr Developer Docs
API SpecificationTopics

Describe a Discord server

POST
/xeonr.notify.v1.TopicService/DescribeDiscordGuild

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
AuthorizationBearer <token>

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

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

topicId?string

The topic whose bot looks.

Length1 <= length <= 32
guildId?string

The server's id (a snowflake).

Match^[0-9]{17,20}$
Length17 <= length <= 20
managerSubject?string

A person to check against the server, by the Discord account they linked in notify. Empty skips the check.

Lengthlength <= 191
[key: string]?never

Response 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
}