-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,64 @@ | ||
# Contributing Guide | ||
|
||
Hello, thank you for taking a look at our contributing guide. This manual will guide you to adding your library to this list. If you are adding a library of which you do not own, please ask for permission from their maintainer(s) first. | ||
|
||
### Requirements | ||
|
||
- Must be an open-source project hosted on a known Git platform (e.g., GitHub, GitLab, Bitbucket, etc). | ||
- Must **not** be written in an [esoteric programming language](https://en.wikipedia.org/wiki/Esoteric_programming_language). | ||
- Must be about using the Discord API as the main proof of concept. | ||
|
||
### Setting Up | ||
|
||
- Clone the repository: `$ git clone https://github.com/apacheli/discord-api-libs` | ||
- Make the necessary changes | ||
- (optional) Run `node .` to view the new `README.md` | ||
- Commit and push your changes | ||
- Create a pull request | ||
|
||
### Formats | ||
|
||
We are now using [JSON](https://www.json.org/json-en.html) when it comes to providing information about a library. Copy the example below, paste it into `./libs/`, and make sure the filename matches the `name` field (e.g., `eris.json` and `"name": "eris"`). | ||
|
||
```jsonc | ||
{ | ||
// 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" | ||
] | ||
} | ||
``` | ||
|
||
If you are adding a library that is written in an entirely programming language, do not forget to add a language JSON file too! Follow the same steps as adding a library, but paste the file into `./langs/`. | ||
|
||
```jsonc | ||
{ | ||
// The language's name. | ||
"name": "", | ||
// The libraries written for the language. | ||
"libraries": [], | ||
// The official website of the language. | ||
"website": "" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "discord-api-libs", | ||
"version": "1.0.0", | ||
"description": "Discord API Community Libraries", | ||
"description": "Discord API Libraries 🚀", | ||
"main": "./main.mjs" | ||
} |