From 76e03953194970c716fba5918085eed5113a46fd Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sat, 23 Jan 2021 20:13:06 +0100 Subject: [PATCH] fix(handlers): add missing handlers (#436) --- src/api/handlers/mod.ts | 50 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/src/api/handlers/mod.ts b/src/api/handlers/mod.ts index 23ecc45b2..c76b4227c 100644 --- a/src/api/handlers/mod.ts +++ b/src/api/handlers/mod.ts @@ -11,7 +11,9 @@ import { getPins, isChannelSynced, sendMessage, + startTyping, } from "./channel.ts"; +import { getGatewayBot } from "./gateway.ts"; import { ban, categoryChildrenIDs, @@ -22,11 +24,13 @@ import { createGuildTemplate, createServer, deleteChannel, + deleteChannelOverwrite, deleteEmoji, deleteGuildTemplate, deleteIntegration, deleteRole, deleteServer, + editChannelOverwrite, editEmbed, editEmoji, editGuild, @@ -41,7 +45,10 @@ import { getChannel, getChannels, getEmbed, + getEmoji, + getEmojis, getGuild, + getGuildPreview, getGuildTemplate, getGuildTemplates, getIntegrations, @@ -68,9 +75,11 @@ import { import { addRole, avatarURL, + editBotNickname, editBotProfile, editMember, kick, + kickFromVoiceChannel, moveMember, rawAvatarURL, removeRole, @@ -91,7 +100,22 @@ import { removeUserReaction, unpin, } from "./message.ts"; -import { createWebhook, executeWebhook, getWebhook } from "./webhook.ts"; +import { getApplicationInformation } from "./oauth.ts"; +import { + createSlashCommand, + createWebhook, + deleteSlashCommand, + deleteSlashResponse, + deleteWebhookMessage, + editSlashCommand, + editSlashResponse, + editWebhookMessage, + executeSlashCommand, + executeWebhook, + getSlashCommands, + getWebhook, + upsertSlashCommand, +} from "./webhook.ts"; export let handlers = { // Channel handler @@ -107,6 +131,10 @@ export let handlers = { getPins, isChannelSynced, sendMessage, + startTyping, + + // Gateway handler + getGatewayBot, // Guild handler ban, @@ -137,7 +165,10 @@ export let handlers = { getChannel, getChannels, getEmbed, + getEmoji, + getEmojis, getGuild, + getGuildPreview, getGuildTemplate, getGuildTemplates, getIntegrations, @@ -156,6 +187,8 @@ export let handlers = { leaveGuild, pruneMembers, swapChannels, + editChannelOverwrite, + deleteChannelOverwrite, swapRoles, syncGuildTemplate, syncIntegration, @@ -165,12 +198,14 @@ export let handlers = { addRole, avatarURL, editBotProfile, + editBotNickname, editMember, kick, moveMember, rawAvatarURL, removeRole, sendDirectMessage, + kickFromVoiceChannel, // Message handler addReaction, @@ -191,6 +226,19 @@ export let handlers = { createWebhook, executeWebhook, getWebhook, + editWebhookMessage, + deleteWebhookMessage, + createSlashCommand, + getSlashCommands, + upsertSlashCommand, + editSlashCommand, + deleteSlashCommand, + executeSlashCommand, + deleteSlashResponse, + editSlashResponse, + + // OAuth handler + getApplicationInformation, }; export type Handlers = typeof handlers;