Read the linked roles settings
Whether this server offers Discord linked roles, the Discord app, the scopes it asks for, the verification URL, and the five metadata fields exactly as registered on Discord.
/v1/discord/linked-roles- Access
- Public access
- Client
- Local or server client
Request examples#
curl -fsS 'https://veil.pub/v1/discord/linked-roles'Response#
{available, application, platformName, scopes, widget, verificationUrl, metadata}.
| Field | Type | Meaning |
|---|---|---|
available | boolean | Whether the server offers it. |
application | string | null | The Discord application id. |
platformName | string | Veil: the connection's name on Discord. |
scopes | array<string> | The OAuth2 scopes the consent asks for. |
widget | boolean | Whether the profile widget is on. |
verificationUrl | string | The page to set as the Linked Roles Verification URL. |
metadata | array<object> | The five fields: {type, key, name, name_localizations, description, description_localizations}. |
Response headers#
| Header | Value | Meaning |
|---|---|---|
Content-Type | application/json | JSON, also for errors. |
Cache-Control | public, max-age=300 | Changes only with the server's settings. |
Errors#
API errors return an error object. Use error.code for program logic; error.message is English text for people and can change. Response and error guide
Shared request errors
| HTTP | Code | Meaning and next step |
|---|---|---|
| 429 | rate_limited | An anonymous, signed-request or API-key allowance was exceeded. Wait at least |
| 500 | internal_error | An unexpected server error occurred. Internal details are not returned. Retry reads with bounded backoff. Check write results before sending a new signed operation. |
| 503 | busy | The application has reached a temporary concurrency or database limit. Wait |