import { BushApplicationCommand, BushClient, BushDMChannel, BushGuild, BushGuildChannel, BushGuildEmoji, BushGuildMember, BushMessage, BushMessageReaction, BushNewsChannel, BushPresence, BushRole, BushStageInstance, BushTextBasedChannels, BushTextChannel, BushThreadChannel, BushThreadMember, BushUser, BushVoiceState, Guild, GuildSettings, PartialBushGuildMember, PartialBushMessage, PartialBushMessageReaction, PartialBushUser } from '@lib'; import { ClientEvents, Collection, Interaction, InvalidRequestWarningData, Invite, RateLimitData, Snowflake, Sticker, Typing } from 'discord.js'; import { BushGuildBan } from './BushGuildBan'; export interface BushClientEvents extends ClientEvents { applicationCommandCreate: [command: BushApplicationCommand]; applicationCommandDelete: [command: BushApplicationCommand]; applicationCommandUpdate: [ oldCommand: BushApplicationCommand | null, newCommand: BushApplicationCommand ]; channelCreate: [channel: BushGuildChannel]; channelDelete: [channel: BushDMChannel | BushGuildChannel]; channelPinsUpdate: [channel: BushTextBasedChannels, date: Date]; channelUpdate: [ oldChannel: BushDMChannel | BushGuildChannel, newChannel: BushDMChannel | BushGuildChannel ]; debug: [message: string]; warn: [message: string]; emojiCreate: [emoji: BushGuildEmoji]; emojiDelete: [emoji: BushGuildEmoji]; emojiUpdate: [oldEmoji: BushGuildEmoji, newEmoji: BushGuildEmoji]; error: [error: Error]; guildBanAdd: [ban: BushGuildBan]; guildBanRemove: [ban: BushGuildBan]; guildCreate: [guild: BushGuild]; guildDelete: [guild: BushGuild]; guildUnavailable: [guild: BushGuild]; guildIntegrationsUpdate: [guild: BushGuild]; guildMemberAdd: [member: BushGuildMember]; guildMemberAvailable: [member: BushGuildMember | PartialBushGuildMember]; guildMemberRemove: [member: BushGuildMember | PartialBushGuildMember]; guildMembersChunk: [ members: Collection, guild: BushGuild, data: { count: number; index: number; nonce: string | undefined; } ]; guildMemberUpdate: [ oldMember: BushGuildMember | PartialBushGuildMember, newMember: BushGuildMember ]; guildUpdate: [oldGuild: BushGuild, newGuild: BushGuild]; inviteCreate: [invite: Invite]; inviteDelete: [invite: Invite]; messageCreate: [message: BushMessage]; messageDelete: [message: BushMessage | PartialBushMessage]; messageReactionRemoveAll: [message: BushMessage | PartialBushMessage]; messageReactionRemoveEmoji: [ reaction: BushMessageReaction | PartialBushMessageReaction ]; messageDeleteBulk: [ messages: Collection ]; messageReactionAdd: [ reaction: BushMessageReaction | PartialBushMessageReaction, user: BushUser | PartialBushUser ]; messageReactionRemove: [ reaction: BushMessageReaction | PartialBushMessageReaction, user: BushUser | PartialBushUser ]; messageUpdate: [ oldMessage: BushMessage | PartialBushMessage, newMessage: BushMessage | PartialBushMessage ]; presenceUpdate: [oldPresence: BushPresence | null, newPresence: BushPresence]; rateLimit: [rateLimitData: RateLimitData]; invalidRequestWarning: [invalidRequestWarningData: InvalidRequestWarningData]; ready: [client: BushClient]; invalidated: []; roleCreate: [role: BushRole]; roleDelete: [role: BushRole]; roleUpdate: [oldRole: BushRole, newRole: BushRole]; threadCreate: [thread: BushThreadChannel]; threadDelete: [thread: BushThreadChannel]; threadListSync: [threads: Collection]; threadMemberUpdate: [ oldMember: BushThreadMember, newMember: BushThreadMember ]; threadMembersUpdate: [ oldMembers: Collection, newMembers: Collection ]; threadUpdate: [oldThread: BushThreadChannel, newThread: BushThreadChannel]; typingStart: [typing: Typing]; userUpdate: [oldUser: BushUser | PartialBushUser, newUser: BushUser]; voiceStateUpdate: [oldState: BushVoiceState, newState: BushVoiceState]; webhookUpdate: [channel: BushTextChannel]; interactionCreate: [interaction: Interaction]; shardError: [error: Error, shardId: number]; shardReady: [shardId: number, unavailableGuilds: Set | undefined]; shardReconnecting: [shardId: number]; shardResume: [shardId: number, replayedEvents: number]; stageInstanceCreate: [stageInstance: BushStageInstance]; stageInstanceUpdate: [ oldStageInstance: BushStageInstance | null, newStageInstance: BushStageInstance ]; stageInstanceDelete: [stageInstance: BushStageInstance]; stickerCreate: [sticker: Sticker]; stickerDelete: [sticker: Sticker]; stickerUpdate: [oldSticker: Sticker, newSticker: Sticker]; /* Custom */ bushBan: [ victim: BushGuildMember | BushUser, moderator: BushUser, guild: BushGuild, reason: string | undefined, caseID: string, duration: number, dmSuccess?: boolean ]; bushKick: [ victim: BushGuildMember, moderator: BushUser, guild: BushGuild, reason: string | undefined, caseID: string, dmSuccess: boolean ]; bushMute: [ victim: BushGuildMember, moderator: BushUser, guild: BushGuild, reason: string | undefined, caseID: string, duration: number, dmSuccess: boolean ]; bushPunishRole: [ victim: BushGuildMember, moderator: BushUser, guild: BushGuild, reason: string | undefined, caseID: string, duration: number, role: BushRole ]; bushPunishRoleRemove: [ victim: BushGuildMember, moderator: BushUser, guild: BushGuild, caseID: string, reason: string | undefined, role: BushRole ]; bushPurge: [ moderator: BushUser, guild: BushGuild, channel: BushTextChannel | BushNewsChannel | BushThreadChannel, messages: Collection ]; bushUnban: [ victim: BushUser, moderator: BushUser, guild: BushGuild, reason: string | undefined, caseID: string, dmSuccess: boolean ]; bushUnmute: [ victim: BushGuildMember, moderator: BushUser, guild: BushGuild, reason: string | undefined, caseID: string, dmSuccess: boolean ]; bushUpdateModlog: [ moderator: BushGuildMember, modlogID: string, key: 'evidence' | 'hidden', oldModlog: string | boolean, newModlog: string | boolean ]; bushUpdateSettings: [ setting: Setting, guild: BushGuild, oldValue: Guild[Setting], newValue: Guild[Setting], moderator?: BushGuildMember ]; bushWarn: [ victim: BushGuildMember, moderator: BushUser, guild: BushGuild, reason: string | undefined, caseID: string, dmSuccess: boolean ]; bushLevelUp: []; } type Setting = | GuildSettings | 'enabledFeatures' | 'blacklistedChannels' | 'blacklistedUsers' | 'disabledCommands';