diff --git a/bot.ts b/bot.ts index 7eb1a2396..571e3cbd3 100644 --- a/bot.ts +++ b/bot.ts @@ -535,15 +535,15 @@ export interface EventHandlers { applicationId: bigint; }, rawPayload: DiscordReady, - ) => any; - interactionCreate: (bot: Bot, interaction: Interaction) => any; - integrationCreate: (bot: Bot, integration: Integration) => any; + ) => unknown; + interactionCreate: (bot: Bot, interaction: Interaction) => unknown; + integrationCreate: (bot: Bot, integration: Integration) => unknown; integrationDelete: ( bot: Bot, payload: { id: bigint; guildId: bigint; applicationId?: bigint }, - ) => any; - integrationUpdate: (bot: Bot, payload: { guildId: bigint }) => any; - inviteCreate: (bot: Bot, invite: Invite) => any; + ) => unknown; + integrationUpdate: (bot: Bot, payload: { guildId: bigint }) => unknown; + inviteCreate: (bot: Bot, invite: Invite) => unknown; inviteDelete: ( bot: Bot, payload: { @@ -551,30 +551,30 @@ export interface EventHandlers { guildId?: bigint; code: string; }, - ) => any; + ) => unknown; guildMemberAdd: ( bot: Bot, member: Member, user: User, - ) => any; - guildMemberRemove: (bot: Bot, user: User, guildId: bigint) => any; + ) => unknown; + guildMemberRemove: (bot: Bot, user: User, guildId: bigint) => unknown; guildMemberUpdate: ( bot: Bot, member: Member, user: User, - ) => any; - messageCreate: (bot: Bot, message: Message) => any; + ) => unknown; + messageCreate: (bot: Bot, message: Message) => unknown; messageDelete: ( bot: Bot, payload: { id: bigint; channelId: bigint; guildId?: bigint }, message?: Message, - ) => any; - messageDeleteBulk: (bot: Bot, payload: { ids: bigint[]; channelId: bigint; guildId?: bigint }) => any; + ) => unknown; + messageDeleteBulk: (bot: Bot, payload: { ids: bigint[]; channelId: bigint; guildId?: bigint }) => unknown; messageUpdate: ( bot: Bot, message: Message, oldMessage?: Message, - ) => any; + ) => unknown; reactionAdd: ( bot: Bot, payload: { @@ -586,7 +586,7 @@ export interface EventHandlers { user?: User; emoji: Emoji; }, - ) => any; + ) => unknown; reactionRemove: ( bot: Bot, payload: { @@ -596,7 +596,7 @@ export interface EventHandlers { guildId?: bigint; emoji: Emoji; }, - ) => any; + ) => unknown; reactionRemoveEmoji: ( bot: Bot, payload: { @@ -605,7 +605,7 @@ export interface EventHandlers { guildId?: bigint; emoji: Emoji; }, - ) => any; + ) => unknown; reactionRemoveAll: ( bot: Bot, payload: { @@ -613,32 +613,32 @@ export interface EventHandlers { messageId: bigint; guildId?: bigint; }, - ) => any; + ) => unknown; presenceUpdate: ( bot: Bot, presence: PresenceUpdate, oldPresence?: PresenceUpdate, - ) => any; + ) => unknown; voiceServerUpdate: ( bot: Bot, payload: { token: string; endpoint?: string; guildId: bigint }, - ) => any; + ) => unknown; voiceStateUpdate: ( bot: Bot, voiceState: VoiceState, - ) => any; - channelCreate: (bot: Bot, channel: Channel) => any; + ) => unknown; + channelCreate: (bot: Bot, channel: Channel) => unknown; dispatchRequirements: ( bot: Bot, data: DiscordGatewayPayload, shardId: number, - ) => any; - channelDelete: (bot: Bot, channel: Channel) => any; + ) => unknown; + channelDelete: (bot: Bot, channel: Channel) => unknown; channelPinsUpdate: ( bot: Bot, data: { guildId?: bigint; channelId: bigint; lastPinTimestamp?: number }, - ) => any; - channelUpdate: (bot: Bot, channel: Channel) => any; + ) => unknown; + channelUpdate: (bot: Bot, channel: Channel) => unknown; stageInstanceCreate: ( bot: Bot, data: { @@ -647,7 +647,7 @@ export interface EventHandlers { channelId: bigint; topic: string; }, - ) => any; + ) => unknown; stageInstanceDelete: ( bot: Bot, data: { @@ -656,7 +656,7 @@ export interface EventHandlers { channelId: bigint; topic: string; }, - ) => any; + ) => unknown; stageInstanceUpdate: ( bot: Bot, data: { @@ -665,29 +665,29 @@ export interface EventHandlers { channelId: bigint; topic: string; }, - ) => any; + ) => unknown; guildEmojisUpdate: ( bot: Bot, payload: { guildId: bigint; emojis: Collection; }, - ) => any; - guildBanAdd: (bot: Bot, user: User, guildId: bigint) => any; - guildBanRemove: (bot: Bot, user: User, guildId: bigint) => any; - guildLoaded: (bot: Bot, guild: Guild) => any; - guildCreate: (bot: Bot, guild: Guild) => any; - guildDelete: (bot: Bot, id: bigint, shardId: number) => any; - guildUpdate: (bot: Bot, guild: Guild) => any; - raw: (bot: Bot, data: DiscordGatewayPayload, shardId: number) => any; - roleCreate: (bot: Bot, role: Role) => any; - roleDelete: (bot: Bot, payload: { guildId: bigint; roleId: bigint }) => any; - roleUpdate: (bot: Bot, role: Role) => any; + ) => unknown; + guildBanAdd: (bot: Bot, user: User, guildId: bigint) => unknown; + guildBanRemove: (bot: Bot, user: User, guildId: bigint) => unknown; + guildLoaded: (bot: Bot, guild: Guild) => unknown; + guildCreate: (bot: Bot, guild: Guild) => unknown; + guildDelete: (bot: Bot, id: bigint, shardId: number) => unknown; + guildUpdate: (bot: Bot, guild: Guild) => unknown; + raw: (bot: Bot, data: DiscordGatewayPayload, shardId: number) => unknown; + roleCreate: (bot: Bot, role: Role) => unknown; + roleDelete: (bot: Bot, payload: { guildId: bigint; roleId: bigint }) => unknown; + roleUpdate: (bot: Bot, role: Role) => unknown; webhooksUpdate: ( bot: Bot, payload: { channelId: bigint; guildId: bigint }, - ) => any; - botUpdate: (bot: Bot, user: User) => any; + ) => unknown; + botUpdate: (bot: Bot, user: User) => unknown; typingStart: ( bot: Bot, payload: { @@ -697,7 +697,7 @@ export interface EventHandlers { timestamp: number; member: Member | undefined; }, - ) => any; + ) => unknown; } export function createBotConstants() {