Skip to content

Instantly share code, notes, and snippets.

@CyberRex0
Last active November 23, 2020 23:16
Show Gist options
  • Save CyberRex0/f816c00d52fcf3c3364adeb50f45b0de to your computer and use it in GitHub Desktop.
Save CyberRex0/f816c00d52fcf3c3364adeb50f45b0de to your computer and use it in GitHub Desktop.
Discord Bad Users List API

Discord Bad Users List API Reference

API Endpoint

http://app.cyberrex.ml/discord/badusers

Actions

Get List

GET /list
  • Fetch the bad users.

Format

{
 "version": "1",
 "users": {
  "0000000000000000000": {
    "name": "shitguy#0000",
    "reason": "スパム行為",
    "image": null,
    "relation_accounts": null
  }
 }
}
key value
version Data format version
users Bad users array
  • user data format
{
    "name": "shitguy#0000",
    "reason": "スパム行為",
    "image": null,
    "relation_accounts": null
}
key value
name username
reason the reason of recognized bad
image evidence images (Optional)
relation_accounts if the person has multiple accounts (Optional)

Get a user information

GET /query?id={user_id}
Key Value
user_id ID you want to get

Format

key value
name username
reason the reason of recognized bad
image evidence images (Optional)
relation_accounts if the person has multiple accounts (Optional)

Response

Status Details
200 Found
404 User doesn't exists

Add a user to list

POST /add

Request body

{
    "token": "YOUR_TOKEN",
    "id": 0000000000000000000,
    "name": "shitguy#0000",
    "reason": "スパム行為",
    "image": null,
    "relation_accounts": null
}
Key Value
token API token (required)
id user id
name username
reason the reason of recognized bad
image evidence images (Optional)
relation_accounts if the person has multiple accounts (Optional)

Response

Status Details
200 Successfully to add
400 invalid request body
403 invalid token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment