add: stage instances (#924)

* feat: implement stage instances

Reference: https://github.com/discord/discord-api-docs/pull/2898

* feat: implement stage instances

* Update src/types/misc/stage_instance.ts

Co-authored-by: ITOH <to@itoh.at>

* Update src/helpers/misc/delete_stage_instance.ts

Co-authored-by: ITOH <to@itoh.at>

* Update src/types/misc/stage_instance.ts

Co-authored-by: ITOH <to@itoh.at>

* Move stage instances related modules to channels module

* Move to channels

* Move to channels

* Add permission checks

* Add permissions checl

* Ad inhibitors

* style: fix lint warnings

* Do not throw & add import type

Co-authored-by: ITOH <to@itoh.at>
This commit is contained in:
rigormorrtiss
2021-05-12 17:57:45 +04:00
committed by GitHub
parent 911f4322b0
commit 275d17c6fe
9 changed files with 163 additions and 0 deletions
+12
View File
@@ -128,6 +128,10 @@ import { getWebhooks } from "./webhooks/get_webhooks.ts";
import { getWebhookMessage } from "./webhooks/get_webhook_message.ts";
import { getWebhookWithToken } from "./webhooks/get_webhook_with_token.ts";
import { sendWebhook } from "./webhooks/send_webhook.ts";
import { createStageInstance } from "./channels/create_stage_instance.ts";
import { updateStageInstance } from "./channels/update_stage_instance.ts";
import { getStageInstance } from "./channels/get_stage_instance.ts";
import { deleteStageInstance } from "./channels/delete_stage_instance.ts";
export {
addDiscoverySubcategory,
@@ -148,6 +152,7 @@ export {
createInvite,
createRole,
createSlashCommand,
createStageInstance,
createWebhook,
deleteChannel,
deleteChannelOverwrite,
@@ -161,6 +166,7 @@ export {
deleteRole,
deleteSlashCommand,
deleteSlashResponse,
deleteStageInstance,
deleteWebhook,
deleteWebhookMessage,
deleteWebhookWithToken,
@@ -217,6 +223,7 @@ export {
getSlashCommandPermission,
getSlashCommandPermissions,
getSlashCommands,
getStageInstance,
getTemplate,
getUser,
getVanityURL,
@@ -260,6 +267,7 @@ export {
unpin,
unpinMessage,
updateBotVoiceState,
updateStageInstance,
upsertSlashCommand,
upsertSlashCommands,
validDiscoveryTerm,
@@ -282,6 +290,10 @@ export let helpers = {
startTyping,
swapChannels,
updateBotVoiceState,
createStageInstance,
getStageInstance,
updateStageInstance,
deleteStageInstance,
// commands
createSlashCommand,
deleteSlashCommand,