Skip to content

Get where project channels are created

GET
/discord/project-channels/settings
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/discord/project-channels/settings \
--header 'Authorization: Bearer <token>'

Returns the category of the team’s Discord server that new project channels go under and the categories to choose from. categories is null when there is no server or Discord could not be asked. Answers 404 MODULE_DISABLED while the Discord module is off. Requires settings.manage.

The project channel settings.

Media typeapplication/json
object
data
required

Where Discord channels for new projects are created.

object
categories
required

The categories of the team’s server to choose from; null when there is no server, Discord could not be asked, or the call cleared the category and did not ask.

Any of:
Array<object>
object
id
required
string
name
required
string
category
required

The category new project channels go under, or null while none is chosen.

Any of:
object
id
required
string
name
required
string
hasServer
required

True once the team’s Discord server is picked.

boolean

Example generated

{
"data": {
"categories": [
{
"id": "example",
"name": "example"
}
],
"category": {
"id": "example",
"name": "example"
},
"hasServer": true
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.