mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
fix(handlers): add missing handlers (#436)
This commit is contained in:
+49
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user