mirror of
https://github.com/sern-handler/tools
synced 2026-06-06 01:16:59 +00:00
sss
This commit is contained in:
@@ -17,10 +17,8 @@
|
||||
"dependencies": {
|
||||
"discord-api-types": "latest"
|
||||
},
|
||||
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.1.0",
|
||||
"microbundle": "^0.15.1",
|
||||
"typescript": "^5.0.4"
|
||||
},
|
||||
"keywords": [],
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
"access": "public",
|
||||
"tag": "beta"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user