From 9a0cd1ef301f771a2d2a378bc42310cea92e9da8 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Wed, 13 Dec 2023 14:19:16 -0600 Subject: [PATCH] more doc --- packages/poster/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/poster/README.md b/packages/poster/README.md index aa5f446..68fc44f 100644 --- a/packages/poster/README.md +++ b/packages/poster/README.md @@ -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)