Users

User Object

Field
Type
Description

id

snowflake

The user's ID

reports

integer

Amount of times the user has been reported

last_reported

timestamp

The last time the user was reported (if they've been reported before)

badges?

badges object

An object containing the user's badges

votes

votes object

An object containing the user's votes

User Badges

Field
Type
Description

blacklisted?

boolean

Whether the user is blacklisted

whitelisted?

boolean

Whether the user is whitelisted

admin?

boolean

Whether the user is an Administrator on Dangercord

User Votes

Field
Type
Description

upvotes

integer

Number of upvotes recieved

downvotes

integer

Number of downvotes recieved

Resources

Get Current User

Method: GET

/user/@me

Returns a user object for the requesting account

Get User

Method: GET

/user/:userid

Returns a user object for the given user ID

Report User

Method: POST

/user/:user_id/report

JSON Params

Field
Type
Description
Default

author

string

The author of the report, requires a trusted token.

N/A

category

integer

A category integer from the category choices (below)

0

reason

string

Report reason. Minimum 10 characters

N/A

Category Choices

Other - 0 Advertising - 1 Spamming - 2 Raiding - 3 Harassing - 4

Trusted Tokens

A trusted token is given only to trusted users, and they are given on a case by case basis by the Dangercord staff.

Last updated