aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushClientEvents.d.ts
blob: ae9b186a5dd93f875ac4683e268d8977b785d8b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import {
	ClientEvents,
	Collection,
	Interaction,
	InvalidRequestWarningData,
	Invite,
	RateLimitData,
	Snowflake,
	Sticker,
	Typing
} from 'discord.js';
import { BushClient, BushTextBasedChannels } from '../discord-akairo/BushClient';
import { BushApplicationCommand } from './BushApplicationCommand';
import { BushDMChannel } from './BushDMChannel';
import { BushGuild } from './BushGuild';
import { BushGuildBan } from './BushGuildBan';
import { BushGuildChannel } from './BushGuildChannel';
import { BushGuildEmoji } from './BushGuildEmoji';
import { BushGuildMember, PartialBushGuildMember } from './BushGuildMember';
import { BushMessage, PartialBushMessage } from './BushMessage';
import { BushMessageReaction, PartialBushMessageReaction } from './BushMessageReaction';
import { BushPresence } from './BushPresence';
import { BushRole } from './BushRole';
import { BushStageInstance } from './BushStageInstance';
import { BushTextChannel } from './BushTextChannel';
import { BushThreadChannel } from './BushThreadChannel';
import { BushThreadMember } from './BushThreadMember';
import { BushUser, PartialBushUser } from './BushUser';
import { BushVoiceState } from './BushVoiceState';

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<Snowflake, BushGuildMember>,
		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<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];
	rateLimit: [rateLimitData: RateLimitData];
	invalidRequestWarning: [invalidRequestWarningData: InvalidRequestWarningData];
	ready: [client: BushClient<true>];
	invalidated: [];
	roleCreate: [role: BushRole];
	roleDelete: [role: BushRole];
	roleUpdate: [oldRole: BushRole, newRole: BushRole];
	threadCreate: [thread: BushThreadChannel];
	threadDelete: [thread: BushThreadChannel];
	threadListSync: [threads: Collection<Snowflake, BushThreadChannel>];
	threadMemberUpdate: [oldMember: BushThreadMember, newMember: BushThreadMember];
	threadMembersUpdate: [
		oldMembers: Collection<Snowflake, BushThreadMember>,
		mewMembers: Collection<Snowflake, BushThreadMember>
	];
	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<Snowflake> | 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];
}