diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-21 17:59:56 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-21 17:59:56 -0500 |
commit | f395ceeabf63ae8972f360cd72f4a14cbaba36b6 (patch) | |
tree | e54c21f6ee292dd271609ba70c6a06279678b4f4 /src | |
parent | c42f42e4dcce2e1e9b886adca355ec2951205b6b (diff) | |
download | tanzanite-f395ceeabf63ae8972f360cd72f4a14cbaba36b6.tar.gz tanzanite-f395ceeabf63ae8972f360cd72f4a14cbaba36b6.tar.bz2 tanzanite-f395ceeabf63ae8972f360cd72f4a14cbaba36b6.zip |
fix: source maps
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/extensions/discord.js/BushClientEvents.ts | 85 |
1 files changed, 69 insertions, 16 deletions
diff --git a/src/lib/extensions/discord.js/BushClientEvents.ts b/src/lib/extensions/discord.js/BushClientEvents.ts index e6cf93f..7437f7f 100644 --- a/src/lib/extensions/discord.js/BushClientEvents.ts +++ b/src/lib/extensions/discord.js/BushClientEvents.ts @@ -29,12 +29,23 @@ import type { PartialBushUser } from '#lib'; import type { AkairoClientEvents } from 'discord-akairo'; -import type { Collection, GuildScheduledEvent, Interaction, Invite, Snowflake, Sticker, Typing } from 'discord.js'; +import type { + Collection, + GuildScheduledEvent, + Interaction, + Invite, + Snowflake, + Sticker, + Typing +} from 'discord.js'; export interface BushClientEvents extends AkairoClientEvents { applicationCommandCreate: [command: BushApplicationCommand]; applicationCommandDelete: [command: BushApplicationCommand]; - applicationCommandUpdate: [oldCommand: BushApplicationCommand | null, newCommand: BushApplicationCommand]; + applicationCommandUpdate: [ + oldCommand: BushApplicationCommand | null, + newCommand: BushApplicationCommand + ]; channelCreate: [channel: BushNonThreadGuildBasedChannel]; channelDelete: [channel: BushDMChannel | BushNonThreadGuildBasedChannel]; channelPinsUpdate: [channel: BushTextBasedChannel, date: Date]; @@ -66,18 +77,37 @@ export interface BushClientEvents extends AkairoClientEvents { nonce: string | undefined; } ]; - guildMemberUpdate: [oldMember: BushGuildMember | PartialBushGuildMember, newMember: BushGuildMember]; + 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, reactions: Collection<string, BushMessageReaction>]; - messageReactionRemoveEmoji: [reaction: BushMessageReaction | PartialBushMessageReaction]; - messageDeleteBulk: [messages: Collection<Snowflake, BushMessage | PartialBushMessage>]; - messageReactionAdd: [reaction: BushMessageReaction | PartialBushMessageReaction, user: BushUser | PartialBushUser]; - messageReactionRemove: [reaction: BushMessageReaction | PartialBushMessageReaction, user: BushUser | PartialBushUser]; - messageUpdate: [oldMessage: BushMessage | PartialBushMessage, newMessage: BushMessage | PartialBushMessage]; + messageReactionRemoveAll: [ + message: BushMessage | PartialBushMessage, + reactions: Collection<string, BushMessageReaction> + ]; + messageReactionRemoveEmoji: [ + reaction: BushMessageReaction | PartialBushMessageReaction + ]; + messageDeleteBulk: [ + messages: Collection<Snowflake, BushMessage | PartialBushMessage> + ]; + 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]; ready: [client: BushClient<true>]; invalidated: []; @@ -87,8 +117,14 @@ export interface BushClientEvents extends AkairoClientEvents { threadCreate: [thread: BushThreadChannel, newlyCreated: boolean]; threadDelete: [thread: BushThreadChannel]; threadListSync: [threads: Collection<Snowflake, BushThreadChannel>]; - threadMemberUpdate: [oldMember: BushThreadMember, newMember: BushThreadMember]; - threadMembersUpdate: [oldMembers: Collection<Snowflake, BushThreadMember>, newMembers: Collection<Snowflake, BushThreadMember>]; + threadMemberUpdate: [ + oldMember: BushThreadMember, + newMember: BushThreadMember + ]; + threadMembersUpdate: [ + oldMembers: Collection<Snowflake, BushThreadMember>, + newMembers: Collection<Snowflake, BushThreadMember> + ]; threadUpdate: [oldThread: BushThreadChannel, newThread: BushThreadChannel]; typingStart: [typing: Typing]; userUpdate: [oldUser: BushUser | PartialBushUser, newUser: BushUser]; @@ -100,16 +136,28 @@ export interface BushClientEvents extends AkairoClientEvents { shardReconnecting: [shardId: number]; shardResume: [shardId: number, replayedEvents: number]; stageInstanceCreate: [stageInstance: BushStageInstance]; - stageInstanceUpdate: [oldStageInstance: BushStageInstance | null, newStageInstance: BushStageInstance]; + stageInstanceUpdate: [ + oldStageInstance: BushStageInstance | null, + newStageInstance: BushStageInstance + ]; stageInstanceDelete: [stageInstance: BushStageInstance]; stickerCreate: [sticker: Sticker]; stickerDelete: [sticker: Sticker]; stickerUpdate: [oldSticker: Sticker, newSticker: Sticker]; guildScheduledEventCreate: [guildScheduledEvent: GuildScheduledEvent]; - guildScheduledEventUpdate: [oldGuildScheduledEvent: GuildScheduledEvent, newGuildScheduledEvent: GuildScheduledEvent]; + guildScheduledEventUpdate: [ + oldGuildScheduledEvent: GuildScheduledEvent, + newGuildScheduledEvent: GuildScheduledEvent + ]; guildScheduledEventDelete: [guildScheduledEvent: GuildScheduledEvent]; - guildScheduledEventUserAdd: [guildScheduledEvent: GuildScheduledEvent, user: BushUser]; - guildScheduledEventUserRemove: [guildScheduledEvent: GuildScheduledEvent, user: BushUser]; + guildScheduledEventUserAdd: [ + guildScheduledEvent: GuildScheduledEvent, + user: BushUser + ]; + guildScheduledEventUserRemove: [ + guildScheduledEvent: GuildScheduledEvent, + user: BushUser + ]; /* Custom */ bushBan: [ victim: BushGuildMember | BushUser, @@ -273,4 +321,9 @@ export interface BushClientEvents extends AkairoClientEvents { ]; } -type Setting = GuildSettings | 'enabledFeatures' | 'blacklistedChannels' | 'blacklistedUsers' | 'disabledCommands'; +type Setting = + | GuildSettings + | 'enabledFeatures' + | 'blacklistedChannels' + | 'blacklistedUsers' + | 'disabledCommands'; |