From 45bfbff3a334a7935d6d61348ee57ce1aed177ca Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Sun, 25 Apr 2021 15:17:37 +0530 Subject: [PATCH] fix deploy --- deploy.ts | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/deploy.ts b/deploy.ts index 7684b41..1c4df2b 100644 --- a/deploy.ts +++ b/deploy.ts @@ -1,10 +1,14 @@ +import { Interaction } from './mod.ts' import { SlashCommandsManager, SlashClient, SlashCommandHandlerCallback, SlashCommandHandler } from './src/interactions/mod.ts' -import { InteractionResponseType, InteractionType } from './src/types/slash.ts' +import { + InteractionResponseType, + InteractionType +} from './src/types/interactions.ts' export interface DeploySlashInitOptions { env?: boolean @@ -124,8 +128,18 @@ export function handle( client.handle(cmd, handler) } +export function interactions(cb: (i: Interaction) => any): void { + client.on('interaction', cb) +} + export { commands, client } -export * from './src/types/slash.ts' +export * from './src/types/slashCommands.ts' +export * from './src/types/interactions.ts' export * from './src/structures/slash.ts' export * from './src/interactions/mod.ts' export * from './src/types/channel.ts' +export * from './src/types/messageComponents.ts' +export * from './src/structures/interactions.ts' +export * from './src/structures/messageComponents.ts' +export * from './src/structures/message.ts' +export * from './src/structures/embed.ts'