From 65e95834453cc1069d76b14b3cbcbd7deb04d743 Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Thu, 21 Jan 2021 18:50:43 +0530 Subject: [PATCH] FIXED ERORRS --- mod.ts | 2 ++ src/gateway/handlers/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mod.ts b/mod.ts index c62042f..8be44ca 100644 --- a/mod.ts +++ b/mod.ts @@ -1,6 +1,7 @@ export { GatewayIntents } from './src/types/gateway.ts' export { Base } from './src/structures/base.ts' export { Gateway } from './src/gateway/index.ts' +export type { GatewayTypedEvents } from './src/gateway/index.ts' export type { ClientEvents } from './src/gateway/handlers/index.ts' export * from './src/models/client.ts' export * from './src/models/slashClient.ts' @@ -124,3 +125,4 @@ export type { UserPayload } from './src/types/user.ts' export { UserFlags } from './src/types/userFlags.ts' export type { VoiceStatePayload } from './src/types/voice.ts' export type { WebhookPayload } from './src/types/webhook.ts' +export * from './src/models/collectors.ts' diff --git a/src/gateway/handlers/index.ts b/src/gateway/handlers/index.ts index 45822e4..4ffb8c7 100644 --- a/src/gateway/handlers/index.ts +++ b/src/gateway/handlers/index.ts @@ -62,7 +62,7 @@ import { Interaction } from '../../structures/slash.ts' import { CommandContext } from '../../models/command.ts' import { RequestMethods } from '../../models/rest.ts' import { PartialInvitePayload } from '../../types/invite.ts' -import { GuildChannel } from '../../managers/guildChannels.ts' +import { GuildChannels } from '../../types/guild.ts' export const gatewayHandlers: { [eventCode in GatewayEvents]: GatewayEventHandler | undefined @@ -389,7 +389,7 @@ export type ClientEvents = { guildRoleUpdateUncached: [role: Role] guildMemberUpdateUncached: [member: Member] guildMemberRemoveUncached: [member: Member] - channelUpdateUncached: [channel: GuildChannel] + channelUpdateUncached: [channel: GuildChannels] commandOwnerOnly: [ctx: CommandContext] commandGuildOnly: [ctx: CommandContext]