diff --git a/packages/core/src/client.ts b/packages/core/src/client.ts index 2b69c75f2..bf86e1cb2 100644 --- a/packages/core/src/client.ts +++ b/packages/core/src/client.ts @@ -7,7 +7,6 @@ import { AsyncEventEmitter } from '@vladfrangu/async_event_emitter'; import { GatewayDispatchEvents, GatewayOpcodes, - type GatewayVoiceStateUpdateData, type APIGuildMember, type GatewayAutoModerationActionExecutionDispatchData, type GatewayAutoModerationRuleCreateDispatchData, @@ -17,6 +16,7 @@ import { type GatewayChannelDeleteDispatchData, type GatewayChannelPinsUpdateDispatchData, type GatewayChannelUpdateDispatchData, + type GatewayGuildAuditLogEntryCreateDispatchData, type GatewayGuildBanAddDispatchData, type GatewayGuildBanRemoveDispatchData, type GatewayGuildCreateDispatchData, @@ -25,8 +25,8 @@ import { type GatewayGuildIntegrationsUpdateDispatchData, type GatewayGuildMemberAddDispatchData, type GatewayGuildMemberRemoveDispatchData, - type GatewayGuildMembersChunkDispatchData, type GatewayGuildMemberUpdateDispatchData, + type GatewayGuildMembersChunkDispatchData, type GatewayGuildRoleCreateDispatchData, type GatewayGuildRoleDeleteDispatchData, type GatewayGuildRoleUpdateDispatchData, @@ -51,6 +51,7 @@ import { type GatewayMessageReactionRemoveDispatchData, type GatewayMessageReactionRemoveEmojiDispatchData, type GatewayMessageUpdateDispatchData, + type GatewayPresenceUpdateData, type GatewayPresenceUpdateDispatchData, type GatewayReadyDispatchData, type GatewayRequestGuildMembersData, @@ -60,15 +61,15 @@ import { type GatewayThreadCreateDispatchData, type GatewayThreadDeleteDispatchData, type GatewayThreadListSyncDispatchData, - type GatewayThreadMembersUpdateDispatchData, type GatewayThreadMemberUpdateDispatchData, + type GatewayThreadMembersUpdateDispatchData, type GatewayThreadUpdateDispatchData, type GatewayTypingStartDispatchData, type GatewayUserUpdateDispatchData, type GatewayVoiceServerUpdateDispatchData, + type GatewayVoiceStateUpdateData, type GatewayVoiceStateUpdateDispatchData, type GatewayWebhooksUpdateDispatchData, - type GatewayPresenceUpdateData, } from 'discord-api-types/v10'; import { API } from './api/index.js'; @@ -88,10 +89,17 @@ export interface WithIntrinsicProps extends IntrinsicProps { } export interface MappedEvents { + [GatewayDispatchEvents.AutoModerationActionExecution]: [ + WithIntrinsicProps, + ]; + [GatewayDispatchEvents.AutoModerationRuleCreate]: [WithIntrinsicProps]; + [GatewayDispatchEvents.AutoModerationRuleDelete]: [WithIntrinsicProps]; + [GatewayDispatchEvents.AutoModerationRuleUpdate]: [WithIntrinsicProps]; [GatewayDispatchEvents.ChannelCreate]: [WithIntrinsicProps]; [GatewayDispatchEvents.ChannelDelete]: [WithIntrinsicProps]; [GatewayDispatchEvents.ChannelPinsUpdate]: [WithIntrinsicProps]; [GatewayDispatchEvents.ChannelUpdate]: [WithIntrinsicProps]; + [GatewayDispatchEvents.GuildAuditLogEntryCreate]: [WithIntrinsicProps]; [GatewayDispatchEvents.GuildBanAdd]: [WithIntrinsicProps]; [GatewayDispatchEvents.GuildBanRemove]: [WithIntrinsicProps]; [GatewayDispatchEvents.GuildCreate]: [WithIntrinsicProps]; @@ -134,6 +142,7 @@ export interface MappedEvents { [GatewayDispatchEvents.MessageUpdate]: [WithIntrinsicProps]; [GatewayDispatchEvents.PresenceUpdate]: [WithIntrinsicProps]; [GatewayDispatchEvents.Ready]: [WithIntrinsicProps]; + [GatewayDispatchEvents.Resumed]: [WithIntrinsicProps]; [GatewayDispatchEvents.StageInstanceCreate]: [WithIntrinsicProps]; [GatewayDispatchEvents.StageInstanceDelete]: [WithIntrinsicProps]; [GatewayDispatchEvents.StageInstanceUpdate]: [WithIntrinsicProps]; @@ -143,18 +152,11 @@ export interface MappedEvents { [GatewayDispatchEvents.ThreadMemberUpdate]: [WithIntrinsicProps]; [GatewayDispatchEvents.ThreadMembersUpdate]: [WithIntrinsicProps]; [GatewayDispatchEvents.ThreadUpdate]: [WithIntrinsicProps]; + [GatewayDispatchEvents.TypingStart]: [WithIntrinsicProps]; [GatewayDispatchEvents.UserUpdate]: [WithIntrinsicProps]; [GatewayDispatchEvents.VoiceServerUpdate]: [WithIntrinsicProps]; [GatewayDispatchEvents.VoiceStateUpdate]: [WithIntrinsicProps]; [GatewayDispatchEvents.WebhooksUpdate]: [WithIntrinsicProps]; - [GatewayDispatchEvents.Resumed]: [WithIntrinsicProps]; - [GatewayDispatchEvents.TypingStart]: [WithIntrinsicProps]; - [GatewayDispatchEvents.AutoModerationActionExecution]: [ - WithIntrinsicProps, - ]; - [GatewayDispatchEvents.AutoModerationRuleCreate]: [WithIntrinsicProps]; - [GatewayDispatchEvents.AutoModerationRuleDelete]: [WithIntrinsicProps]; - [GatewayDispatchEvents.AutoModerationRuleUpdate]: [WithIntrinsicProps]; } export type ManagerShardEventsMap = {