mirror of
https://github.com/sern-handler/tools
synced 2026-06-23 08:12:20 +00:00
more doc
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user