apacheli / discord-api-libs

List of open-source Discord API Libraries
http://apache.li/discord-api-libs/
Apache License 2.0
144 stars 24 forks source link

Use JSON for Discord API Libraries #38

Closed apacheli closed 2 years ago

apacheli commented 2 years ago

This pull request adds support for JSON library data.

Some data might be inaccurate at the time of this writing, so any reviews are greatly appreciated.

Language.jsonc example:

{
  // The language's name.
  "name": "",
  // The libraries written for the language.
  "libraries": [],
  // The official website of the language.
  "website": ""
}

Library.jsonc example:

{
  // The library's name.
  "name": "",
  // A description of the library.
  // You can also just use the "About" section of the library's repository.
  "description": "",
  // The language the library is written in.
  "language": "",
  // Can be GitHub, GitLab, Bitbucket, etc.
  "repository_url": "",
  // Extra metadata.
  "tags": [
    // Can also mean deprecated.
    "archived",
    "fork",
    "wrapper"
  ],
  // The features of the Discord API the library supports.
  "features": [
    "gateway",
    "interactions",
    "rest",
    "rpc",
    "webhooks",
    "voice"
  ]
}

Closes #36.