Skip to content

Instantly share code, notes, and snippets.

@Andre601
Created April 18, 2021 06:03
Show Gist options
  • Save Andre601/b18b1c4e88e9a405806ce7b6c29a0136 to your computer and use it in GitHub Desktop.
Save Andre601/b18b1c4e88e9a405806ce7b6c29a0136 to your computer and use it in GitHub Desktop.
JSON Response examples for JavaBotBlockAPI

JavaBotBlockAPI JSON Examples

Here are some JSON examples from what could be returned by [BotBlock] when performing either GET or POST requests.
Note that the files only list the most nessesary/required info, so the fact of a String being empty could mean that it is optional for the bot lists.

Unique values

The following values may be unique and are based on how many Bot lists return this particular information:

  • username
  • discriminator
  • owners
  • server_count
  • invite
  • prefix
  • website
  • github
  • support
  • library

Additionally is any information returned in list_data in the format [{list_data},status_code] where list_data is the response returned by the bot list and status_code the HTTP Status code it gives.

{
"id": "123456789012345678",
"username": "MyBot",
"discriminator": "1234",
"owners": [
"234567890123456789"
],
"server_count": 100,
"invite": "https://discordapp.com/oauth2/authorize?client_id=123456789012345678&scope=bot",
"prefix": "?",
"website": "",
"github": "",
"support": "",
"library": "JDA",
"list_data": {
"somebotlist.com": [
{"data": "Unique bot list data"},
200
],
"otherlist.org": [
{"data": "Unique bot list data"},
404
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment