This commit is contained in:
Jacob Nguyen
2024-01-28 21:20:11 -06:00
parent af0960ee5d
commit 99aff4966c
4 changed files with 97 additions and 4465 deletions

View File

@@ -17,10 +17,8 @@
"dependencies": {
"discord-api-types": "latest"
},
"devDependencies": {
"@types/node": "^20.1.0",
"microbundle": "^0.15.1",
"typescript": "^5.0.4"
},
"keywords": [],

View File

@@ -14,7 +14,7 @@ REST API client for managing discord application commands.
```ts
import poster from '@sern/poster';
const send = poster.client("token", "appid");
const send = await poster.client("token", "appid");
const req = await send("global/get-all", {
//options
@@ -41,6 +41,7 @@ This package is pretty simple. Create a new client and call one of the "endpoint
| guild/edit | PATCH | /applications/{application.id}/guilds/{guild.id}/commands/{command.id}|
| guild/delete | DELETE | /applications/{application.id}/guilds/{guild.id}/commands/{command.id}|
| guild/put | PUT | /applications/{application.id}/guilds/{guild.id}/commands|
| application/me | GET | /applications/@me|
Documentation for these routes are specified in the discord api documentation,
starting [here.](https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands)

View File

@@ -17,6 +17,7 @@
"author": "",
"license": "ISC",
"publishConfig": {
"access": "public"
"access": "public",
"tag": "beta"
}
}

4554
yarn.lock

File diff suppressed because it is too large Load Diff