docs: Description

This commit is contained in:
Cinnamon
2022-06-26 13:54:43 +07:00
parent 736238f3df
commit 3b2d88caf9
9 changed files with 35 additions and 10 deletions

View File

@@ -13,6 +13,31 @@ URL example:
'https://discord.com/api/v9/users/@me'
const url = client.api.users['@me'];
/* Method: GET | POST | PUT | PATCH | DELETE */
Option:
#1
query: Object
- example: https://discord.com/api/v9/users/@me?abc=123&xyz=ok (GET)
client.api.users['@me'].get({
query: {
abc: 123,
xyz: 'ok',
}
});
#2
body + files: Object + Array
-> 'content-type': FormData (POST)
#3
data: Object
-> 'content-type': 'application/json'
...
```