feat(handlers): add upsertSlashCommands() (#442)

* feat(handlers): add bulk upsert commands function

* Update mod.ts

* add jsdoc

* add ID info

* ID is optional

* Update webhook.ts

* use //@ts-ignore

* idk
This commit is contained in:
ITOH
2021-01-24 18:41:28 +00:00
committed by GitHub
parent 2a78e1b92e
commit 1c6d5a60e0
3 changed files with 48 additions and 0 deletions
+2
View File
@@ -120,6 +120,7 @@ import {
getSlashCommands,
getWebhook,
upsertSlashCommand,
upsertSlashCommands,
} from "./webhook.ts";
export let handlers = {
@@ -241,6 +242,7 @@ export let handlers = {
getSlashCommand,
getSlashCommands,
upsertSlashCommand,
upsertSlashCommands,
editSlashCommand,
deleteSlashCommand,
executeSlashCommand,