This commit is contained in:
Jacob Nguyen
2023-12-13 14:19:16 -06:00
parent d326ef383a
commit 9a0cd1ef30

View File

@@ -6,7 +6,7 @@ REST API client for managing discord application commands.
- Optionally typed responses
- view an example (here)[../poster/test/spec.ts]
- Typed options
- Simple!
- Simple! (sort of)
- ClojureScript + Typescript
- I'm sorry.
@@ -24,8 +24,8 @@ console.log(await req.json());
```
## Mappings
This package is pretty simple. Create a new client and call one of the virtual routes
### virtual routes
This package is pretty simple. Create a new client and call one of the "endpoints"
| Endpoint | Method | Path |
|------------------|--------|---------------------------------------------------- |
@@ -42,3 +42,5 @@ This package is pretty simple. Create a new client and call one of the virtual r
| guild/delete | DELETE | /applications/{application.id}/guilds/{guild.id}/commands/{command.id}|
| guild/put | PUT | /applications/{application.id}/guilds/{guild.id}/commands|
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)