@discordeno/bot 18.0.0-next.c271a85 → 19.0.0-next.e05a65c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bot.d.ts +87 -805
- package/dist/bot.d.ts.map +1 -1
- package/dist/bot.js +2 -2
- package/dist/index.d.ts +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +10 -7
- package/README.md +0 -158
- package/dist/types.d.ts +0 -67
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
package/dist/bot.d.ts
CHANGED
|
@@ -1,814 +1,96 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { ApplicationCommandOption } from './transformers/applicationCommandOption.js';
|
|
11
|
-
import { ApplicationCommandPermission, transformApplicationCommandPermission } from './transformers/applicationCommandPermission.js';
|
|
12
|
-
import { Attachment, transformAttachment } from './transformers/attachment.js';
|
|
13
|
-
import { AuditLogEntry, transformAuditLogEntry } from './transformers/auditLogEntry.js';
|
|
14
|
-
import { Component } from './transformers/component.js';
|
|
15
|
-
import { Embed, transformEmbed } from './transformers/embed.js';
|
|
16
|
-
import { Emoji, transformEmoji } from './transformers/emoji.js';
|
|
17
|
-
import { ApplicationCommandOptionChoice, AutoModerationActionExecution, AutoModerationRule, Channel, Guild, GuildWidget, GuildWidgetSettings, Integration, Interaction, InteractionDataOption, Invite, Member, Message, PresenceUpdate, Role, ScheduledEvent, StageInstance, Sticker, StickerPack, Team, Template, ThreadMember, transformApplicationCommandOptionChoice, transformAutoModerationActionExecution, transformAutoModerationRule, transformGuild, transformIntegration, transformInteraction, transformInvite, transformMessage, transformPresence, transformStageInstance, transformStickerPack, transformTemplate, transformVoiceRegion, transformWebhook, transformWelcomeScreen, transformWidget, transformWidgetSettings, User, VoiceRegions, VoiceState, Webhook, WelcomeScreen } from './transformers/index.js';
|
|
18
|
-
import { CreateApplicationCommand, InteractionResponse } from './types.js';
|
|
1
|
+
import type { CreateGatewayManagerOptions, GatewayManager, Shard } from '@discordeno/gateway';
|
|
2
|
+
import type { CreateRestManagerOptions, RestManager } from '@discordeno/rest';
|
|
3
|
+
import type { Camelize, DiscordAutoModerationActionExecution, DiscordAutoModerationRule, DiscordChannel, DiscordChannelPinsUpdate, DiscordGatewayPayload, DiscordGuild, DiscordGuildApplicationCommandPermissions, DiscordGuildBanAddRemove, DiscordGuildEmojisUpdate, DiscordGuildMemberAdd, DiscordGuildMemberRemove, DiscordGuildMembersChunk, DiscordGuildMemberUpdate, DiscordGuildRoleCreate, DiscordGuildRoleDelete, DiscordGuildRoleUpdate, DiscordGuildStickersUpdate, DiscordIntegrationCreateUpdate, DiscordIntegrationDelete, DiscordInteraction, DiscordInviteCreate, DiscordInviteDelete, DiscordMessage, DiscordMessageDelete, DiscordMessageDeleteBulk, DiscordMessageReactionAdd, DiscordMessageReactionRemove, DiscordMessageReactionRemoveAll, DiscordMessageReactionRemoveEmoji, DiscordPresenceUpdate, DiscordReady, DiscordScheduledEvent, DiscordScheduledEventUserAdd, DiscordScheduledEventUserRemove, DiscordStageInstance, DiscordThreadListSync, DiscordThreadMembersUpdate, DiscordThreadMemberUpdate, DiscordTypingStart, DiscordUnavailableGuild, DiscordUser, DiscordVoiceServerUpdate, DiscordVoiceState, DiscordWebhookUpdate } from '@discordeno/types';
|
|
4
|
+
/**
|
|
5
|
+
* Create a bot object that will maintain the rest and gateway connection.
|
|
6
|
+
*
|
|
7
|
+
* @param options Configurations options used to manage this bot.
|
|
8
|
+
* @returns Bot
|
|
9
|
+
*/
|
|
19
10
|
export declare function createBot(options: CreateBotOptions): Bot;
|
|
20
|
-
export declare function createEventHandlers(events: Partial<EventHandlers>): EventHandlers;
|
|
21
|
-
export declare function startBot(bot: Bot): Promise<void>;
|
|
22
|
-
export declare function createUtils(options: Partial<HelperUtils>): {
|
|
23
|
-
snowflakeToBigint: typeof snowflakeToBigint;
|
|
24
|
-
bigintToSnowflake: typeof bigintToSnowflake;
|
|
25
|
-
calculateShardId: typeof calculateShardId;
|
|
26
|
-
delay: typeof delay;
|
|
27
|
-
iconHashToBigInt: typeof iconHashToBigInt;
|
|
28
|
-
iconBigintToHash: typeof iconBigintToHash;
|
|
29
|
-
validateLength: typeof validateLength;
|
|
30
|
-
urlToBase64: typeof urlToBase64;
|
|
31
|
-
formatImageURL: typeof formatImageURL;
|
|
32
|
-
calculateBits: typeof calculateBits;
|
|
33
|
-
calculatePermissions: typeof calculatePermissions;
|
|
34
|
-
};
|
|
35
|
-
export interface HelperUtils {
|
|
36
|
-
snowflakeToBigint: typeof snowflakeToBigint;
|
|
37
|
-
bigintToSnowflake: typeof bigintToSnowflake;
|
|
38
|
-
calculateShardId: typeof calculateShardId;
|
|
39
|
-
delay: typeof delay;
|
|
40
|
-
iconHashToBigInt: typeof iconHashToBigInt;
|
|
41
|
-
iconBigintToHash: typeof iconBigintToHash;
|
|
42
|
-
validateLength: typeof validateLength;
|
|
43
|
-
urlToBase64: typeof urlToBase64;
|
|
44
|
-
formatImageURL: typeof formatImageURL;
|
|
45
|
-
calculateBits: typeof calculateBits;
|
|
46
|
-
calculatePermissions: typeof calculatePermissions;
|
|
47
|
-
}
|
|
48
|
-
export declare function stopBot(bot: Bot): Promise<Bot>;
|
|
49
11
|
export interface CreateBotOptions {
|
|
12
|
+
/** The bot's token. */
|
|
50
13
|
token: string;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
rest?: Omit<CreateRestManagerOptions, 'token'>;
|
|
58
|
-
handleDiscordPayload?: CreateShardManager['handleMessage'];
|
|
59
|
-
utils?: Partial<ReturnType<typeof createUtils>>;
|
|
60
|
-
transformers?: Partial<ReturnType<typeof createTransformers>>;
|
|
61
|
-
helpers?: Partial<Helpers>;
|
|
14
|
+
/** Any options you wish to provide to the rest manager. */
|
|
15
|
+
rest?: CreateRestManagerOptions;
|
|
16
|
+
/** Any options you wish to provide to the gateway manager. */
|
|
17
|
+
gateway?: CreateGatewayManagerOptions;
|
|
18
|
+
/** The event handlers. */
|
|
19
|
+
events: Partial<EventHandlers>;
|
|
62
20
|
}
|
|
63
|
-
export type UnPromise<T extends Promise<unknown>> = T extends Promise<infer K> ? K : never;
|
|
64
21
|
export interface Bot {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
gateway: ReturnType<typeof createGatewayManager>;
|
|
76
|
-
events: EventHandlers;
|
|
77
|
-
handlers: ReturnType<typeof createBotGatewayHandlers>;
|
|
78
|
-
activeGuildIds: Set<bigint>;
|
|
79
|
-
constants: ReturnType<typeof createBotConstants>;
|
|
80
|
-
cache: {
|
|
81
|
-
unrepliedInteractions: Set<bigint>;
|
|
82
|
-
fetchAllMembersProcessingRequests: Map<string, Function>;
|
|
83
|
-
};
|
|
84
|
-
enabledPlugins: Set<string>;
|
|
85
|
-
handleDiscordPayload?: CreateShardManager['handleMessage'];
|
|
86
|
-
}
|
|
87
|
-
export declare const defaultHelpers: {
|
|
88
|
-
followAnnouncementChannel(bot: Bot, sourceChannelId: BigString, targetChannelId: BigString): Promise<bigint>;
|
|
89
|
-
createChannel(bot: Bot, guildId: BigString, options: helpers.CreateGuildChannel): Promise<Channel>;
|
|
90
|
-
deleteChannel(bot: Bot, channelId: BigString, reason?: string | undefined): Promise<void>;
|
|
91
|
-
deleteChannelPermissionOverride(bot: Bot, channelId: BigString, overwriteId: BigString, reason?: string | undefined): Promise<void>;
|
|
92
|
-
editChannel(bot: Bot, channelId: BigString, options: helpers.ModifyChannel): Promise<Channel>;
|
|
93
|
-
editChannelPermissionOverrides(bot: Bot, channelId: BigString, options: helpers.EditChannelPermissionOverridesOptions): Promise<void>;
|
|
94
|
-
editChannelPositions(bot: Bot, guildId: BigString, channelPositions: helpers.ModifyGuildChannelPositions[]): Promise<void>;
|
|
95
|
-
swapChannels: typeof helpers.editChannelPositions;
|
|
96
|
-
createForumThread(bot: Bot, channelId: BigString, options: helpers.CreateForumPostWithMessage): Promise<Channel>;
|
|
97
|
-
getChannel(bot: Bot, channelId: BigString): Promise<Channel>;
|
|
98
|
-
getChannelInvites(bot: Bot, channelId: BigString): Promise<Collection<string, helpers.InviteMetadata>>;
|
|
99
|
-
getChannels(bot: Bot, guildId: BigString): Promise<Collection<bigint, Channel>>;
|
|
100
|
-
createStageInstance(bot: Bot, options: helpers.CreateStageInstance): Promise<StageInstance>;
|
|
101
|
-
deleteStageInstance(bot: Bot, channelId: BigString, reason?: string | undefined): Promise<void>;
|
|
102
|
-
editStageInstance(bot: Bot, channelId: BigString, data: helpers.EditStageInstanceOptions): Promise<StageInstance>;
|
|
103
|
-
getStageInstance(bot: Bot, channelId: BigString): Promise<StageInstance>;
|
|
104
|
-
addThreadMember(bot: Bot, channelId: BigString, userId: BigString): Promise<void>;
|
|
105
|
-
getActiveThreads(bot: Bot, guildId: BigString): Promise<helpers.ActiveThreads>;
|
|
106
|
-
getPrivateArchivedThreads(bot: Bot, channelId: BigString, options?: helpers.ListArchivedThreads | undefined): Promise<helpers.ArchivedThreads>;
|
|
107
|
-
getPrivateJoinedArchivedThreads(bot: Bot, channelId: BigString, options?: helpers.ListArchivedThreads | undefined): Promise<helpers.ArchivedThreads>;
|
|
108
|
-
getPublicArchivedThreads(bot: Bot, channelId: BigString, options?: helpers.ListArchivedThreads | undefined): Promise<helpers.ArchivedThreads>;
|
|
109
|
-
getThreadMember(bot: Bot, channelId: BigString, userId: BigString): Promise<ThreadMember>;
|
|
110
|
-
getThreadMembers(bot: Bot, channelId: BigString): Promise<Collection<bigint, ThreadMember>>;
|
|
111
|
-
joinThread(bot: Bot, channelId: BigString): Promise<void>;
|
|
112
|
-
leaveThread(bot: Bot, channelId: BigString): Promise<void>;
|
|
113
|
-
removeThreadMember(bot: Bot, channelId: BigString, userId: BigString): Promise<void>;
|
|
114
|
-
startThreadWithMessage(bot: Bot, channelId: BigString, messageId: BigString, options: helpers.StartThreadWithMessage): Promise<Channel>;
|
|
115
|
-
startThreadWithoutMessage(bot: Bot, channelId: BigString, options: helpers.StartThreadWithoutMessage): Promise<Channel>;
|
|
116
|
-
triggerTypingIndicator(bot: Bot, channelId: BigString): Promise<void>;
|
|
117
|
-
startTyping: typeof helpers.triggerTypingIndicator;
|
|
118
|
-
createEmoji(bot: Bot, guildId: BigString, options: helpers.CreateGuildEmoji): Promise<Emoji>;
|
|
119
|
-
deleteEmoji(bot: Bot, guildId: BigString, id: BigString, reason?: string | undefined): Promise<void>;
|
|
120
|
-
editEmoji(bot: Bot, guildId: BigString, id: BigString, options: helpers.ModifyGuildEmoji): Promise<Emoji>;
|
|
121
|
-
getEmoji(bot: Bot, guildId: BigString, emojiId: BigString): Promise<Emoji>;
|
|
122
|
-
getEmojis(bot: Bot, guildId: BigString): Promise<Collection<bigint, Emoji>>;
|
|
123
|
-
getEmojiURL(_bot: Bot, emojiId: BigString, animated?: boolean): string;
|
|
124
|
-
createAutomodRule(bot: Bot, guildId: BigString, options: helpers.CreateAutoModerationRuleOptions): Promise<AutoModerationRule>;
|
|
125
|
-
deleteAutomodRule(bot: Bot, guildId: BigString, ruleId: BigString, reason?: string | undefined): Promise<void>;
|
|
126
|
-
editAutomodRule(bot: Bot, guildId: BigString, ruleId: BigString, options: Partial<helpers.EditAutoModerationRuleOptions>): Promise<AutoModerationRule>;
|
|
127
|
-
getAutomodRule(bot: Bot, guildId: BigString, ruleId: BigString): Promise<AutoModerationRule>;
|
|
128
|
-
getAutomodRules(bot: Bot, guildId: BigString): Promise<Collection<bigint, AutoModerationRule>>;
|
|
129
|
-
createGuild(bot: Bot, options: helpers.CreateGuild): Promise<Guild>;
|
|
130
|
-
deleteGuild(bot: Bot, guildId: BigString): Promise<void>;
|
|
131
|
-
editGuild(bot: Bot, guildId: BigString, options: helpers.ModifyGuild, shardId: number): Promise<Guild>;
|
|
132
|
-
editGuildMfaLevel(bot: Bot, guildId: BigString, mfaLevel: import("@discordeno/gateway").MfaLevels, reason?: string | undefined): Promise<void>;
|
|
133
|
-
editWelcomeScreen(bot: Bot, guildId: BigString, options: helpers.ModifyGuildWelcomeScreen): Promise<WelcomeScreen>;
|
|
134
|
-
createScheduledEvent(bot: Bot, guildId: BigString, options: helpers.CreateScheduledEvent): Promise<ScheduledEvent>;
|
|
135
|
-
deleteScheduledEvent(bot: Bot, guildId: BigString, eventId: BigString): Promise<void>;
|
|
136
|
-
editScheduledEvent(bot: Bot, guildId: BigString, eventId: BigString, options: Partial<helpers.EditScheduledEvent>): Promise<ScheduledEvent>;
|
|
137
|
-
getScheduledEvent(bot: Bot, guildId: BigString, eventId: BigString, options?: {
|
|
138
|
-
withUserCount?: boolean | undefined;
|
|
139
|
-
} | undefined): Promise<ScheduledEvent>;
|
|
140
|
-
getScheduledEvents(bot: Bot, guildId: BigString, options?: helpers.GetScheduledEvents | undefined): Promise<Collection<bigint, ScheduledEvent>>;
|
|
141
|
-
getScheduledEventUsers(bot: Bot, guildId: BigString, eventId: BigString, options?: (helpers.GetScheduledEventUsers & {
|
|
142
|
-
withMember?: false | undefined;
|
|
143
|
-
}) | undefined): Promise<Collection<bigint, User>>;
|
|
144
|
-
getScheduledEventUsers(bot: Bot, guildId: BigString, eventId: BigString, options?: (helpers.GetScheduledEventUsers & {
|
|
145
|
-
withMember: true;
|
|
146
|
-
}) | undefined): Promise<Collection<bigint, {
|
|
147
|
-
user: User;
|
|
148
|
-
member: Member;
|
|
149
|
-
}>>;
|
|
150
|
-
getAuditLog(bot: Bot, guildId: BigString, options?: helpers.GetGuildAuditLog | undefined): Promise<helpers.AuditLog>;
|
|
151
|
-
getBan(bot: Bot, guildId: BigString, userId: BigString): Promise<helpers.Ban>;
|
|
152
|
-
getBans(bot: Bot, guildId: BigString, options?: helpers.GetBans | undefined): Promise<Collection<bigint, helpers.Ban>>;
|
|
153
|
-
getGuild(bot: Bot, guildId: BigString, options?: {
|
|
154
|
-
counts?: boolean | undefined;
|
|
155
|
-
}): Promise<Guild>;
|
|
156
|
-
getGuildBannerURL(bot: Bot, guildId: BigString, options: {
|
|
157
|
-
banner?: string | bigint | undefined;
|
|
158
|
-
size?: import("@discordeno/gateway").ImageSize | undefined;
|
|
159
|
-
format?: import("@discordeno/gateway").ImageFormat | undefined;
|
|
160
|
-
}): string | undefined;
|
|
161
|
-
getGuildIconURL(bot: Bot, guildId: BigString, imageHash: BigString | undefined, options?: {
|
|
162
|
-
size?: import("@discordeno/gateway").ImageSize | undefined;
|
|
163
|
-
format?: import("@discordeno/gateway").ImageFormat | undefined;
|
|
164
|
-
} | undefined): string | undefined;
|
|
165
|
-
getGuildPreview(bot: Bot, guildId: BigString): Promise<helpers.GuildPreview>;
|
|
166
|
-
getGuildSplashURL(bot: Bot, guildId: BigString, imageHash: BigString | undefined, options?: {
|
|
167
|
-
size?: import("@discordeno/gateway").ImageSize | undefined;
|
|
168
|
-
format?: import("@discordeno/gateway").ImageFormat | undefined;
|
|
169
|
-
} | undefined): string | undefined;
|
|
170
|
-
getPruneCount(bot: Bot, guildId: BigString, options?: helpers.GetGuildPruneCountQuery | undefined): Promise<number>;
|
|
171
|
-
getVanityUrl(bot: Bot, guildId: BigString): Promise<helpers.VanityUrl>;
|
|
172
|
-
getWelcomeScreen(bot: Bot, guildId: BigString): Promise<WelcomeScreen>;
|
|
173
|
-
deleteIntegration(bot: Bot, guildId: BigString, integrationId: BigString): Promise<void>;
|
|
174
|
-
getIntegrations(bot: Bot, guildId: BigString): Promise<Collection<bigint, Integration>>;
|
|
175
|
-
createInvite(bot: Bot, channelId: BigString, options?: helpers.CreateChannelInvite): Promise<helpers.BaseInvite>;
|
|
176
|
-
deleteInvite(bot: Bot, inviteCode: string, reason?: string | undefined): Promise<void>;
|
|
177
|
-
getInvite(bot: Bot, inviteCode: string, options?: helpers.GetInvite | undefined): Promise<helpers.BaseInvite>;
|
|
178
|
-
getInvites(bot: Bot, guildId: BigString): Promise<Collection<string, helpers.InviteMetadata>>;
|
|
179
|
-
leaveGuild(bot: Bot, guildId: BigString): Promise<void>;
|
|
180
|
-
connectToVoiceChannel(bot: Bot, guildId: BigString, channelId: BigString, options?: import("@discordeno/gateway").AtLeastOne<Omit<helpers.UpdateVoiceState, "guildId" | "channelId">, {
|
|
181
|
-
selfMute: Pick<Omit<helpers.UpdateVoiceState, "guildId" | "channelId">, "selfMute">;
|
|
182
|
-
selfDeaf: Pick<Omit<helpers.UpdateVoiceState, "guildId" | "channelId">, "selfDeaf">;
|
|
183
|
-
}> | undefined): Promise<void>;
|
|
184
|
-
editOwnVoiceState(bot: Bot, guildId: BigString, options: helpers.EditOwnVoiceState): Promise<void>;
|
|
185
|
-
editUserVoiceState(bot: Bot, guildId: BigString, options: helpers.EditUserVoiceState): Promise<void>;
|
|
186
|
-
updateBotVoiceState: typeof helpers.editOwnVoiceState;
|
|
187
|
-
getAvailableVoiceRegions(bot: Bot): Promise<Collection<string, VoiceRegions>>;
|
|
188
|
-
getVoiceRegions(bot: Bot, guildId: BigString): Promise<Collection<string, VoiceRegions>>;
|
|
189
|
-
leaveVoiceChannel(bot: Bot, guildId: BigString): Promise<void>;
|
|
190
|
-
editWidgetSettings(bot: Bot, guildId: BigString, enabled: boolean, channelId?: string | null | undefined): Promise<GuildWidgetSettings>;
|
|
191
|
-
getWidget(bot: Bot, guildId: BigString): Promise<GuildWidget>;
|
|
192
|
-
getWidgetImageURL(bot: Bot, guildId: BigString, options?: helpers.GetGuildWidgetImageQuery | undefined): string;
|
|
193
|
-
getWidgetSettings(bot: Bot, guildId: BigString): Promise<GuildWidgetSettings>;
|
|
194
|
-
createGlobalApplicationCommand(bot: Bot, command: CreateApplicationCommand): Promise<ApplicationCommand>;
|
|
195
|
-
createGuildApplicationCommand(bot: Bot, command: CreateApplicationCommand, guildId: BigString): Promise<ApplicationCommand>;
|
|
196
|
-
deleteGlobalApplicationCommand(bot: Bot, commandId: BigString): Promise<void>;
|
|
197
|
-
deleteGuildApplicationCommand(bot: Bot, commandId: BigString, guildId: BigString): Promise<void>;
|
|
198
|
-
editApplicationCommandPermissions(bot: Bot, guildId: BigString, commandId: BigString, bearerToken: string, options: helpers.ApplicationCommandPermissions[]): Promise<ApplicationCommandPermission>;
|
|
199
|
-
editGlobalApplicationCommand(bot: Bot, commandId: BigString, options: CreateApplicationCommand): Promise<ApplicationCommand>;
|
|
200
|
-
editGuildApplicationCommand(bot: Bot, commandId: BigString, guildId: BigString, options: CreateApplicationCommand): Promise<ApplicationCommand>;
|
|
201
|
-
getApplicationCommandPermission(bot: Bot, guildId: BigString, commandId: BigString): Promise<ApplicationCommandPermission>;
|
|
202
|
-
getApplicationCommandPermissions(bot: Bot, guildId: BigString): Promise<Collection<bigint, ApplicationCommandPermission>>;
|
|
203
|
-
getGlobalApplicationCommand(bot: Bot, commandId: BigString): Promise<ApplicationCommand>;
|
|
204
|
-
getGlobalApplicationCommands(bot: Bot): Promise<Collection<bigint, ApplicationCommand>>;
|
|
205
|
-
getGuildApplicationCommand(bot: Bot, commandId: BigString, guildId: BigString): Promise<ApplicationCommand>;
|
|
206
|
-
getGuildApplicationCommands(bot: Bot, guildId: BigString): Promise<Collection<bigint, ApplicationCommand>>;
|
|
207
|
-
upsertGlobalApplicationCommands(bot: Bot, commands: CreateApplicationCommand[]): Promise<Collection<bigint, ApplicationCommand>>;
|
|
208
|
-
upsertGuildApplicationCommands(bot: Bot, guildId: BigString, commands: CreateApplicationCommand[]): Promise<Collection<bigint, ApplicationCommand>>;
|
|
209
|
-
deleteFollowupMessage(bot: Bot, token: string, messageId: BigString): Promise<void>;
|
|
210
|
-
deleteOriginalInteractionResponse(bot: Bot, token: string): Promise<void>;
|
|
211
|
-
editFollowupMessage(bot: Bot, token: string, messageId: BigString, options: import("./types.js").InteractionCallbackData): Promise<Message>;
|
|
212
|
-
editOriginalInteractionResponse(bot: Bot, token: string, options: import("./types.js").InteractionCallbackData): Promise<Message | undefined>;
|
|
213
|
-
getFollowupMessage(bot: Bot, token: string, messageId: BigString): Promise<Message>;
|
|
214
|
-
getOriginalInteractionResponse(bot: Bot, token: string): Promise<Message>;
|
|
215
|
-
sendFollowupMessage(bot: Bot, token: string, options: InteractionResponse): Promise<Message>;
|
|
216
|
-
sendInteractionResponse(bot: Bot, interactionId: BigString, token: string, options: InteractionResponse): Promise<void>;
|
|
217
|
-
banMember(bot: Bot, guildId: BigString, userId: BigString, options?: helpers.CreateGuildBan | undefined): Promise<void>;
|
|
218
|
-
editBotMember(bot: Bot, guildId: BigString, options: helpers.EditBotMemberOptions): Promise<Member>;
|
|
219
|
-
editMember(bot: Bot, guildId: BigString, userId: BigString, options: helpers.ModifyGuildMember): Promise<Member>;
|
|
220
|
-
fetchMembers(bot: Bot, guildId: BigString, options?: Omit<helpers.RequestGuildMembers, "guildId"> | undefined): Promise<void>;
|
|
221
|
-
getAvatarURL(bot: Bot, userId: BigString, discriminator: string, options?: {
|
|
222
|
-
avatar: BigString | undefined;
|
|
223
|
-
size?: import("@discordeno/gateway").ImageSize | undefined;
|
|
224
|
-
format?: import("@discordeno/gateway").ImageFormat | undefined;
|
|
225
|
-
} | undefined): string;
|
|
226
|
-
getDmChannel(bot: Bot, userId: BigString): Promise<Channel>;
|
|
227
|
-
getMember(bot: Bot, guildId: BigString, userId: BigString): Promise<Member>;
|
|
228
|
-
getMembers(bot: Bot, guildId: BigString, options: helpers.ListGuildMembers): Promise<Collection<bigint, Member>>;
|
|
229
|
-
kickMember(bot: Bot, guildId: BigString, userId: BigString, reason?: string | undefined): Promise<void>;
|
|
230
|
-
pruneMembers(bot: Bot, guildId: BigString, options: helpers.BeginGuildPrune): Promise<number | undefined>;
|
|
231
|
-
searchMembers(bot: Bot, guildId: BigString, query: string, options?: Omit<import("@discordeno/gateway").SearchMembers, "query"> | undefined): Promise<Collection<bigint, Member>>;
|
|
232
|
-
unbanMember(bot: Bot, guildId: BigString, userId: BigString): Promise<void>;
|
|
233
|
-
crosspostMessage(bot: Bot, channelId: BigString, messageId: BigString): Promise<Message>;
|
|
234
|
-
publishMessage: typeof helpers.crosspostMessage;
|
|
235
|
-
deleteMessage(bot: Bot, channelId: BigString, messageId: BigString, reason?: string | undefined, delayMilliseconds?: number): Promise<void>;
|
|
236
|
-
deleteMessages(bot: Bot, channelId: BigString, messageIds: BigString[], reason?: string | undefined): Promise<void>;
|
|
237
|
-
editMessage(bot: Bot, channelId: BigString, messageId: BigString, options: helpers.EditMessage): Promise<Message>;
|
|
238
|
-
getMessage(bot: Bot, channelId: BigString, messageId: BigString): Promise<Message>;
|
|
239
|
-
getMessages(bot: Bot, channelId: BigString, options?: helpers.GetMessagesOptions | undefined): Promise<Collection<bigint, Message>>;
|
|
240
|
-
isGetMessagesAfter(options: helpers.GetMessagesOptions): options is helpers.GetMessagesAfter;
|
|
241
|
-
isGetMessagesBefore(options: helpers.GetMessagesOptions): options is helpers.GetMessagesBefore;
|
|
242
|
-
isGetMessagesAround(options: helpers.GetMessagesOptions): options is helpers.GetMessagesAround;
|
|
243
|
-
isGetMessagesLimit(options: helpers.GetMessagesOptions): options is helpers.GetMessagesLimit;
|
|
244
|
-
getPinnedMessages(bot: Bot, channelId: BigString): Promise<Collection<bigint, Message>>;
|
|
245
|
-
pinMessage(bot: Bot, channelId: BigString, messageId: BigString, reason?: string | undefined): Promise<void>;
|
|
246
|
-
addReaction(bot: Bot, channelId: BigString, messageId: BigString, reaction: string): Promise<void>;
|
|
247
|
-
addReactions(bot: Bot, channelId: BigString, messageId: BigString, reactions: string[], ordered?: boolean): Promise<void>;
|
|
248
|
-
deleteOwnReaction(bot: Bot, channelId: BigString, messageId: BigString, reaction: string): Promise<void>;
|
|
249
|
-
deleteUserReaction(bot: Bot, channelId: BigString, messageId: BigString, userId: BigString, reaction: string): Promise<void>;
|
|
250
|
-
deleteReactionsAll(bot: Bot, channelId: BigString, messageId: BigString): Promise<void>;
|
|
251
|
-
deleteReactionsEmoji(bot: Bot, channelId: BigString, messageId: BigString, reaction: string): Promise<void>;
|
|
252
|
-
getReactions(bot: Bot, channelId: BigString, messageId: BigString, reaction: string, options?: helpers.GetReactions | undefined): Promise<Collection<bigint, User>>;
|
|
253
|
-
processReactionString(reaction: string): string;
|
|
254
|
-
sendMessage(bot: Bot, channelId: BigString, options: helpers.CreateMessage): Promise<Message>;
|
|
255
|
-
unpinMessage(bot: Bot, channelId: BigString, messageId: BigString, reason?: string | undefined): Promise<void>;
|
|
256
|
-
editBotProfile(bot: Bot, options: {
|
|
257
|
-
username?: string | undefined;
|
|
258
|
-
botAvatarURL?: string | null | undefined;
|
|
259
|
-
}): Promise<User>;
|
|
260
|
-
editBotStatus(bot: Bot, data: helpers.StatusUpdate): Promise<void>;
|
|
261
|
-
editShardStatus(bot: Bot, shardId: number, data: helpers.StatusUpdate): Promise<void>;
|
|
262
|
-
getApplicationInfo(bot: Bot): Promise<Application>;
|
|
263
|
-
getGatewayBot(bot: Bot): Promise<GetGatewayBot>;
|
|
264
|
-
getNitroStickerPacks(bot: Bot): Promise<Collection<bigint, StickerPack>>;
|
|
265
|
-
getUser(bot: Bot, userId: BigString): Promise<User>;
|
|
266
|
-
addRole(bot: Bot, guildId: BigString, userId: BigString, roleId: BigString, reason?: string | undefined): Promise<void>;
|
|
267
|
-
createRole(bot: Bot, guildId: BigString, options: helpers.CreateGuildRole, reason?: string | undefined): Promise<Role>;
|
|
268
|
-
deleteRole(bot: Bot, guildId: BigString, roleId: BigString): Promise<void>;
|
|
269
|
-
editRole(bot: Bot, guildId: BigString, roleId: BigString, options: helpers.EditGuildRole): Promise<Role>;
|
|
270
|
-
modifyRolePositions(bot: Bot, guildId: BigString, options: helpers.ModifyRolePositions[]): Promise<Collection<bigint, Role>>;
|
|
271
|
-
getRoles(bot: Bot, guildId: BigString): Promise<Collection<bigint, Role>>;
|
|
272
|
-
removeRole(bot: Bot, guildId: BigString, userId: BigString, roleId: BigString, reason?: string | undefined): Promise<void>;
|
|
273
|
-
createGuildSticker(bot: Bot, guildId: bigint, options: helpers.CreateGuildStickerOptions): Promise<Sticker>;
|
|
274
|
-
deleteGuildSticker(bot: Bot, guildId: bigint, stickerId: bigint, reason?: string | undefined): Promise<void>;
|
|
275
|
-
editGuildSticker(bot: Bot, guildId: bigint, stickerId: bigint, options: import("@discordeno/gateway").AtLeastOne<helpers.EditGuildStickerOptions, {
|
|
276
|
-
name?: Pick<helpers.EditGuildStickerOptions, "name"> | undefined;
|
|
277
|
-
description?: Pick<helpers.EditGuildStickerOptions, "description"> | undefined;
|
|
278
|
-
tags?: Pick<helpers.EditGuildStickerOptions, "tags"> | undefined;
|
|
279
|
-
reason?: Pick<helpers.EditGuildStickerOptions, "reason"> | undefined;
|
|
280
|
-
}>): Promise<Sticker>;
|
|
281
|
-
getGuildSticker(bot: Bot, guildId: bigint, stickerId: bigint): Promise<Sticker>;
|
|
282
|
-
getGuildStickers(bot: Bot, guildId: bigint): Promise<Collection<bigint, Sticker>>;
|
|
283
|
-
getSticker(bot: Bot, stickerId: bigint): Promise<Sticker>;
|
|
284
|
-
createGuildFromTemplate(bot: Bot, templateCode: string, options: helpers.CreateGuildFromTemplate): Promise<Guild>;
|
|
285
|
-
createGuildTemplate(bot: Bot, guildId: BigString, options: helpers.CreateTemplate): Promise<Template>;
|
|
286
|
-
deleteGuildTemplate(bot: Bot, guildId: BigString, templateCode: string): Promise<void>;
|
|
287
|
-
editGuildTemplate(bot: Bot, guildId: BigString, templateCode: string, options: helpers.ModifyGuildTemplate): Promise<Template>;
|
|
288
|
-
getGuildTemplate(bot: Bot, templateCode: string): Promise<Template>;
|
|
289
|
-
getGuildTemplates(bot: Bot, guildId: BigString): Promise<Collection<string, Template>>;
|
|
290
|
-
syncGuildTemplate(bot: Bot, guildId: BigString, templateCode: string): Promise<Template>;
|
|
291
|
-
createWebhook(bot: Bot, channelId: BigString, options: helpers.CreateWebhook): Promise<Webhook>;
|
|
292
|
-
deleteWebhook(bot: Bot, webhookId: BigString, reason?: string | undefined): Promise<void>;
|
|
293
|
-
deleteWebhookMessage(bot: Bot, webhookId: BigString, token: string, messageId: BigString, options?: helpers.DeleteWebhookMessageOptions | undefined): Promise<void>;
|
|
294
|
-
deleteWebhookWithToken(bot: Bot, webhookId: BigString, token: string): Promise<void>;
|
|
295
|
-
editOriginalWebhookMessage(bot: Bot, webhookId: BigString, token: string, options: import("./types.js").InteractionCallbackData & {
|
|
296
|
-
threadId?: BigString | undefined;
|
|
297
|
-
}): Promise<Message>;
|
|
298
|
-
editWebhook(bot: Bot, webhookId: BigString, options: helpers.ModifyWebhook): Promise<Webhook>;
|
|
299
|
-
editWebhookMessage(bot: Bot, webhookId: BigString, token: string, messageId: BigString, options: import("./types.js").InteractionCallbackData & {
|
|
300
|
-
threadId?: BigString | undefined;
|
|
301
|
-
}): Promise<Message>;
|
|
302
|
-
editWebhookWithToken(bot: Bot, webhookId: BigString, token: string, options: Omit<helpers.ModifyWebhook, "channelId">): Promise<Webhook>;
|
|
303
|
-
executeWebhook(bot: Bot, webhookId: BigString, token: string, options: helpers.ExecuteWebhook): Promise<Message | undefined>;
|
|
304
|
-
sendWebhookMessage: typeof helpers.executeWebhook;
|
|
305
|
-
getChannelWebhooks(bot: Bot, channelId: BigString): Promise<Collection<bigint, Webhook>>;
|
|
306
|
-
getGuildWebhooks(bot: Bot, guildId: BigString): Promise<Collection<bigint, Webhook>>;
|
|
307
|
-
getWebhook(bot: Bot, webhookId: BigString): Promise<Webhook>;
|
|
308
|
-
getWebhookMessage(bot: Bot, webhookId: BigString, token: string, messageId: BigString, options?: helpers.GetWebhookMessageOptions | undefined): Promise<Message>;
|
|
309
|
-
getWebhookWithToken(bot: Bot, webhookId: BigString, token: string): Promise<Webhook>;
|
|
310
|
-
};
|
|
311
|
-
export type DefaultHelpers = typeof defaultHelpers;
|
|
312
|
-
export interface Helpers extends DefaultHelpers {
|
|
22
|
+
/** The rest manager. */
|
|
23
|
+
rest: RestManager;
|
|
24
|
+
/** The gateway manager. */
|
|
25
|
+
gateway: GatewayManager;
|
|
26
|
+
/** The event handlers. */
|
|
27
|
+
events: Partial<EventHandlers>;
|
|
28
|
+
/** Start the bot connection to the gateway. */
|
|
29
|
+
start: () => Promise<void>;
|
|
30
|
+
/** Shuts down all the bot connections to the gateway. */
|
|
31
|
+
shutdown: () => Promise<void>;
|
|
313
32
|
}
|
|
314
|
-
export declare function createHelpers(bot: Bot, customHelpers?: Partial<Helpers>): FinalHelpers;
|
|
315
|
-
export declare function createBaseHelpers(options: Partial<Helpers>): DefaultHelpers & Partial<Helpers>;
|
|
316
|
-
export interface Transformers {
|
|
317
|
-
reverse: {
|
|
318
|
-
allowedMentions: (bot: Bot, payload: AllowedMentions) => DiscordAllowedMentions;
|
|
319
|
-
embed: (bot: Bot, payload: Embed) => DiscordEmbed;
|
|
320
|
-
component: (bot: Bot, payload: Component) => DiscordComponent;
|
|
321
|
-
activity: (bot: Bot, payload: Activity) => DiscordActivity;
|
|
322
|
-
member: (bot: Bot, payload: Member) => DiscordMember;
|
|
323
|
-
user: (bot: Bot, payload: User) => DiscordUser;
|
|
324
|
-
team: (bot: Bot, payload: Team) => DiscordTeam;
|
|
325
|
-
application: (bot: Bot, payload: Application) => DiscordApplication;
|
|
326
|
-
snowflake: (snowflake: BigString) => string;
|
|
327
|
-
createApplicationCommand: (bot: Bot, payload: CreateApplicationCommand) => DiscordCreateApplicationCommand;
|
|
328
|
-
applicationCommand: (bot: Bot, payload: ApplicationCommand) => DiscordApplicationCommand;
|
|
329
|
-
applicationCommandOption: (bot: Bot, payload: ApplicationCommandOption) => DiscordApplicationCommandOption;
|
|
330
|
-
applicationCommandOptionChoice: (bot: Bot, payload: ApplicationCommandOptionChoice) => DiscordApplicationCommandOptionChoice;
|
|
331
|
-
interactionResponse: (bot: Bot, payload: InteractionResponse) => DiscordInteractionResponse;
|
|
332
|
-
attachment: (bot: Bot, payload: Attachment) => DiscordAttachment;
|
|
333
|
-
};
|
|
334
|
-
snowflake: (snowflake: BigString) => bigint;
|
|
335
|
-
gatewayBot: (payload: DiscordGetGatewayBot) => GetGatewayBot;
|
|
336
|
-
automodRule: (bot: Bot, payload: DiscordAutoModerationRule) => AutoModerationRule;
|
|
337
|
-
automodActionExecution: (bot: Bot, payload: DiscordAutoModerationActionExecution) => AutoModerationActionExecution;
|
|
338
|
-
channel: (bot: Bot, payload: {
|
|
339
|
-
channel: DiscordChannel;
|
|
340
|
-
} & {
|
|
341
|
-
guildId?: bigint;
|
|
342
|
-
}) => Channel;
|
|
343
|
-
guild: (bot: Bot, payload: {
|
|
344
|
-
guild: DiscordGuild;
|
|
345
|
-
} & {
|
|
346
|
-
shardId: number;
|
|
347
|
-
}) => Guild;
|
|
348
|
-
user: (bot: Bot, payload: DiscordUser) => User;
|
|
349
|
-
member: (bot: Bot, payload: DiscordMember, guildId: bigint, userId: bigint) => Member;
|
|
350
|
-
message: (bot: Bot, payload: DiscordMessage) => Message;
|
|
351
|
-
role: (bot: Bot, payload: {
|
|
352
|
-
role: DiscordRole;
|
|
353
|
-
} & {
|
|
354
|
-
guildId: bigint;
|
|
355
|
-
}) => Role;
|
|
356
|
-
voiceState: (bot: Bot, payload: {
|
|
357
|
-
voiceState: DiscordVoiceState;
|
|
358
|
-
} & {
|
|
359
|
-
guildId: bigint;
|
|
360
|
-
}) => VoiceState;
|
|
361
|
-
interaction: (bot: Bot, payload: DiscordInteraction) => Interaction;
|
|
362
|
-
interactionDataOptions: (bot: Bot, payload: DiscordInteractionDataOption) => InteractionDataOption;
|
|
363
|
-
integration: (bot: Bot, payload: DiscordIntegrationCreateUpdate) => Integration;
|
|
364
|
-
invite: (bot: Bot, invite: DiscordInviteCreate) => Invite;
|
|
365
|
-
application: (bot: Bot, payload: DiscordApplication) => Application;
|
|
366
|
-
team: (bot: Bot, payload: DiscordTeam) => Team;
|
|
367
|
-
emoji: (bot: Bot, payload: DiscordEmoji) => Emoji;
|
|
368
|
-
activity: (bot: Bot, payload: DiscordActivity) => Activity;
|
|
369
|
-
presence: (bot: Bot, payload: DiscordPresenceUpdate) => PresenceUpdate;
|
|
370
|
-
attachment: (bot: Bot, payload: DiscordAttachment) => Attachment;
|
|
371
|
-
embed: (bot: Bot, payload: DiscordEmbed) => Embed;
|
|
372
|
-
component: (bot: Bot, payload: DiscordComponent) => Component;
|
|
373
|
-
webhook: (bot: Bot, payload: DiscordWebhook) => Webhook;
|
|
374
|
-
auditLogEntry: (bot: Bot, payload: DiscordAuditLogEntry) => AuditLogEntry;
|
|
375
|
-
applicationCommand: (bot: Bot, payload: DiscordApplicationCommand) => ApplicationCommand;
|
|
376
|
-
applicationCommandOption: (bot: Bot, payload: DiscordApplicationCommandOption) => ApplicationCommandOption;
|
|
377
|
-
applicationCommandPermission: (bot: Bot, payload: DiscordGuildApplicationCommandPermissions) => ApplicationCommandPermission;
|
|
378
|
-
scheduledEvent: (bot: Bot, payload: DiscordScheduledEvent) => ScheduledEvent;
|
|
379
|
-
threadMember: (bot: Bot, payload: DiscordThreadMember) => ThreadMember;
|
|
380
|
-
welcomeScreen: (bot: Bot, payload: DiscordWelcomeScreen) => WelcomeScreen;
|
|
381
|
-
voiceRegion: (bot: Bot, payload: DiscordVoiceRegion) => VoiceRegions;
|
|
382
|
-
widget: (bot: Bot, payload: DiscordGuildWidget) => GuildWidget;
|
|
383
|
-
widgetSettings: (bot: Bot, payload: DiscordGuildWidgetSettings) => GuildWidgetSettings;
|
|
384
|
-
stageInstance: (bot: Bot, payload: DiscordStageInstance) => StageInstance;
|
|
385
|
-
sticker: (bot: Bot, payload: DiscordSticker) => Sticker;
|
|
386
|
-
stickerPack: (bot: Bot, payload: DiscordStickerPack) => StickerPack;
|
|
387
|
-
applicationCommandOptionChoice: (bot: Bot, payload: DiscordApplicationCommandOptionChoice) => ApplicationCommandOptionChoice;
|
|
388
|
-
template: (bot: Bot, payload: DiscordTemplate) => Template;
|
|
389
|
-
}
|
|
390
|
-
export declare function createTransformers(options: Partial<Transformers>): {
|
|
391
|
-
reverse: {
|
|
392
|
-
allowedMentions: (bot: Bot, payload: AllowedMentions) => DiscordAllowedMentions;
|
|
393
|
-
embed: (bot: Bot, payload: Embed) => DiscordEmbed;
|
|
394
|
-
component: (bot: Bot, payload: Component) => DiscordComponent;
|
|
395
|
-
activity: (bot: Bot, payload: Activity) => DiscordActivity;
|
|
396
|
-
member: (bot: Bot, payload: Member) => DiscordMember;
|
|
397
|
-
user: (bot: Bot, payload: User) => DiscordUser;
|
|
398
|
-
team: (bot: Bot, payload: Team) => DiscordTeam;
|
|
399
|
-
application: (bot: Bot, payload: Application) => DiscordApplication;
|
|
400
|
-
snowflake: typeof bigintToSnowflake;
|
|
401
|
-
createApplicationCommand: (bot: Bot, payload: CreateApplicationCommand) => DiscordCreateApplicationCommand;
|
|
402
|
-
applicationCommand: (bot: Bot, payload: ApplicationCommand) => DiscordApplicationCommand;
|
|
403
|
-
applicationCommandOption: (bot: Bot, payload: ApplicationCommandOption) => DiscordApplicationCommandOption;
|
|
404
|
-
applicationCommandOptionChoice: (bot: Bot, payload: ApplicationCommandOptionChoice) => DiscordApplicationCommandOptionChoice;
|
|
405
|
-
interactionResponse: (bot: Bot, payload: InteractionResponse) => DiscordInteractionResponse;
|
|
406
|
-
attachment: (bot: Bot, payload: Attachment) => DiscordAttachment;
|
|
407
|
-
};
|
|
408
|
-
automodRule: typeof transformAutoModerationRule;
|
|
409
|
-
automodActionExecution: typeof transformAutoModerationActionExecution;
|
|
410
|
-
activity: typeof transformActivity;
|
|
411
|
-
application: typeof transformApplication;
|
|
412
|
-
attachment: typeof transformAttachment;
|
|
413
|
-
channel: (bot: Bot, payload: {
|
|
414
|
-
channel: DiscordChannel;
|
|
415
|
-
} & {
|
|
416
|
-
guildId?: bigint | undefined;
|
|
417
|
-
}) => Channel;
|
|
418
|
-
component: (bot: Bot, payload: DiscordComponent) => Component;
|
|
419
|
-
embed: typeof transformEmbed;
|
|
420
|
-
emoji: typeof transformEmoji;
|
|
421
|
-
guild: typeof transformGuild;
|
|
422
|
-
integration: typeof transformIntegration;
|
|
423
|
-
interaction: typeof transformInteraction;
|
|
424
|
-
interactionDataOptions: (bot: Bot, payload: DiscordInteractionDataOption) => InteractionDataOption;
|
|
425
|
-
invite: typeof transformInvite;
|
|
426
|
-
member: (bot: Bot, payload: DiscordMember, guildId: bigint, userId: bigint) => Member;
|
|
427
|
-
message: typeof transformMessage;
|
|
428
|
-
presence: typeof transformPresence;
|
|
429
|
-
role: (bot: Bot, payload: {
|
|
430
|
-
role: DiscordRole;
|
|
431
|
-
} & {
|
|
432
|
-
guildId: bigint;
|
|
433
|
-
}) => Role;
|
|
434
|
-
user: (bot: Bot, payload: DiscordUser) => User;
|
|
435
|
-
team: (bot: Bot, payload: DiscordTeam) => Team;
|
|
436
|
-
voiceState: (bot: Bot, payload: {
|
|
437
|
-
voiceState: DiscordVoiceState;
|
|
438
|
-
} & {
|
|
439
|
-
guildId: bigint;
|
|
440
|
-
}) => VoiceState;
|
|
441
|
-
snowflake: (snowflake: BigString) => bigint;
|
|
442
|
-
webhook: typeof transformWebhook;
|
|
443
|
-
auditLogEntry: typeof transformAuditLogEntry;
|
|
444
|
-
applicationCommand: typeof transformApplicationCommand;
|
|
445
|
-
applicationCommandOption: (bot: Bot, payload: DiscordApplicationCommandOption) => ApplicationCommandOption;
|
|
446
|
-
applicationCommandPermission: typeof transformApplicationCommandPermission;
|
|
447
|
-
scheduledEvent: (bot: Bot, payload: DiscordScheduledEvent) => ScheduledEvent;
|
|
448
|
-
threadMember: (bot: Bot, payload: DiscordThreadMember) => ThreadMember;
|
|
449
|
-
welcomeScreen: typeof transformWelcomeScreen;
|
|
450
|
-
voiceRegion: typeof transformVoiceRegion;
|
|
451
|
-
widget: typeof transformWidget;
|
|
452
|
-
widgetSettings: typeof transformWidgetSettings;
|
|
453
|
-
stageInstance: typeof transformStageInstance;
|
|
454
|
-
sticker: (bot: Bot, payload: DiscordSticker) => Sticker;
|
|
455
|
-
stickerPack: typeof transformStickerPack;
|
|
456
|
-
gatewayBot: (payload: DiscordGetGatewayBot) => GetGatewayBot;
|
|
457
|
-
applicationCommandOptionChoice: typeof transformApplicationCommandOptionChoice;
|
|
458
|
-
template: typeof transformTemplate;
|
|
459
|
-
};
|
|
460
33
|
export interface EventHandlers {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
guildMemberRemove: (bot: Bot, user: User, guildId: bigint) => unknown;
|
|
523
|
-
guildMemberUpdate: (bot: Bot, member: Member, user: User) => unknown;
|
|
524
|
-
messageCreate: (bot: Bot, message: Message) => unknown;
|
|
525
|
-
messageDelete: (bot: Bot, payload: {
|
|
526
|
-
id: bigint;
|
|
527
|
-
channelId: bigint;
|
|
528
|
-
guildId?: bigint;
|
|
529
|
-
}, message?: Message) => unknown;
|
|
530
|
-
messageDeleteBulk: (bot: Bot, payload: {
|
|
531
|
-
ids: bigint[];
|
|
532
|
-
channelId: bigint;
|
|
533
|
-
guildId?: bigint;
|
|
534
|
-
}) => unknown;
|
|
535
|
-
messageUpdate: (bot: Bot, message: Message, oldMessage?: Message) => unknown;
|
|
536
|
-
reactionAdd: (bot: Bot, payload: {
|
|
537
|
-
userId: bigint;
|
|
538
|
-
channelId: bigint;
|
|
539
|
-
messageId: bigint;
|
|
540
|
-
guildId?: bigint;
|
|
541
|
-
member?: Member;
|
|
542
|
-
user?: User;
|
|
543
|
-
emoji: Emoji;
|
|
544
|
-
}) => unknown;
|
|
545
|
-
reactionRemove: (bot: Bot, payload: {
|
|
546
|
-
userId: bigint;
|
|
547
|
-
channelId: bigint;
|
|
548
|
-
messageId: bigint;
|
|
549
|
-
guildId?: bigint;
|
|
550
|
-
emoji: Emoji;
|
|
551
|
-
}) => unknown;
|
|
552
|
-
reactionRemoveEmoji: (bot: Bot, payload: {
|
|
553
|
-
channelId: bigint;
|
|
554
|
-
messageId: bigint;
|
|
555
|
-
guildId?: bigint;
|
|
556
|
-
emoji: Emoji;
|
|
557
|
-
}) => unknown;
|
|
558
|
-
reactionRemoveAll: (bot: Bot, payload: {
|
|
559
|
-
channelId: bigint;
|
|
560
|
-
messageId: bigint;
|
|
561
|
-
guildId?: bigint;
|
|
562
|
-
}) => unknown;
|
|
563
|
-
presenceUpdate: (bot: Bot, presence: PresenceUpdate, oldPresence?: PresenceUpdate) => unknown;
|
|
564
|
-
voiceServerUpdate: (bot: Bot, payload: {
|
|
565
|
-
token: string;
|
|
566
|
-
endpoint?: string;
|
|
567
|
-
guildId: bigint;
|
|
568
|
-
}) => unknown;
|
|
569
|
-
voiceStateUpdate: (bot: Bot, voiceState: VoiceState) => unknown;
|
|
570
|
-
channelCreate: (bot: Bot, channel: Channel) => unknown;
|
|
571
|
-
dispatchRequirements: (bot: Bot, data: DiscordGatewayPayload, shardId: number) => unknown;
|
|
572
|
-
channelDelete: (bot: Bot, channel: Channel) => unknown;
|
|
573
|
-
channelPinsUpdate: (bot: Bot, data: {
|
|
574
|
-
guildId?: bigint;
|
|
575
|
-
channelId: bigint;
|
|
576
|
-
lastPinTimestamp?: number;
|
|
577
|
-
}) => unknown;
|
|
578
|
-
channelUpdate: (bot: Bot, channel: Channel) => unknown;
|
|
579
|
-
stageInstanceCreate: (bot: Bot, data: {
|
|
580
|
-
id: bigint;
|
|
581
|
-
guildId: bigint;
|
|
582
|
-
channelId: bigint;
|
|
583
|
-
topic: string;
|
|
584
|
-
}) => unknown;
|
|
585
|
-
stageInstanceDelete: (bot: Bot, data: {
|
|
586
|
-
id: bigint;
|
|
587
|
-
guildId: bigint;
|
|
588
|
-
channelId: bigint;
|
|
589
|
-
topic: string;
|
|
590
|
-
}) => unknown;
|
|
591
|
-
stageInstanceUpdate: (bot: Bot, data: {
|
|
592
|
-
id: bigint;
|
|
593
|
-
guildId: bigint;
|
|
594
|
-
channelId: bigint;
|
|
595
|
-
topic: string;
|
|
596
|
-
}) => unknown;
|
|
597
|
-
guildEmojisUpdate: (bot: Bot, payload: {
|
|
598
|
-
guildId: bigint;
|
|
599
|
-
emojis: Collection<bigint, DiscordEmoji>;
|
|
600
|
-
}) => unknown;
|
|
601
|
-
guildBanAdd: (bot: Bot, user: User, guildId: bigint) => unknown;
|
|
602
|
-
guildBanRemove: (bot: Bot, user: User, guildId: bigint) => unknown;
|
|
603
|
-
guildCreate: (bot: Bot, guild: Guild) => unknown;
|
|
604
|
-
guildDelete: (bot: Bot, id: bigint, shardId: number) => unknown;
|
|
605
|
-
guildUpdate: (bot: Bot, guild: Guild) => unknown;
|
|
606
|
-
raw: (bot: Bot, data: DiscordGatewayPayload, shardId: number) => unknown;
|
|
607
|
-
roleCreate: (bot: Bot, role: Role) => unknown;
|
|
608
|
-
roleDelete: (bot: Bot, payload: {
|
|
609
|
-
guildId: bigint;
|
|
610
|
-
roleId: bigint;
|
|
611
|
-
}) => unknown;
|
|
612
|
-
roleUpdate: (bot: Bot, role: Role) => unknown;
|
|
613
|
-
webhooksUpdate: (bot: Bot, payload: {
|
|
614
|
-
channelId: bigint;
|
|
615
|
-
guildId: bigint;
|
|
616
|
-
}) => unknown;
|
|
617
|
-
botUpdate: (bot: Bot, user: User) => unknown;
|
|
618
|
-
typingStart: (bot: Bot, payload: {
|
|
619
|
-
guildId: bigint | undefined;
|
|
620
|
-
channelId: bigint;
|
|
621
|
-
userId: bigint;
|
|
622
|
-
timestamp: number;
|
|
623
|
-
member: Member | undefined;
|
|
624
|
-
}) => unknown;
|
|
625
|
-
}
|
|
626
|
-
export declare function createBotConstants(): {
|
|
627
|
-
DISCORDENO_VERSION: string;
|
|
628
|
-
USER_AGENT: string;
|
|
629
|
-
BASE_URL: string;
|
|
630
|
-
CDN_URL: string;
|
|
631
|
-
routes: {
|
|
632
|
-
GATEWAY_BOT: () => string;
|
|
633
|
-
AUTOMOD_RULES: (guildId: BigString) => string;
|
|
634
|
-
AUTOMOD_RULE: (guildId: BigString, ruleId: BigString) => string;
|
|
635
|
-
CHANNEL: (channelId: BigString) => string;
|
|
636
|
-
CHANNEL_MESSAGE: (channelId: BigString, messageId: BigString) => string;
|
|
637
|
-
CHANNEL_MESSAGES: (channelId: BigString, options?: helpers.GetMessagesOptions | undefined) => string;
|
|
638
|
-
CHANNEL_PIN: (channelId: BigString, messageId: BigString) => string;
|
|
639
|
-
CHANNEL_PINS: (channelId: BigString) => string;
|
|
640
|
-
CHANNEL_BULK_DELETE: (channelId: BigString) => string;
|
|
641
|
-
CHANNEL_INVITES: (channelId: BigString) => string;
|
|
642
|
-
CHANNEL_WEBHOOKS: (channelId: BigString) => string;
|
|
643
|
-
CHANNEL_MESSAGE_REACTION_ME: (channelId: BigString, messageId: BigString, emoji: string) => string;
|
|
644
|
-
CHANNEL_MESSAGE_REACTION_USER: (channelId: BigString, messageId: BigString, emoji: string, userId: BigString) => string;
|
|
645
|
-
CHANNEL_MESSAGE_REACTIONS: (channelId: BigString, messageId: BigString) => string;
|
|
646
|
-
CHANNEL_MESSAGE_REACTION: (channelId: BigString, messageId: BigString, emoji: string, options?: helpers.GetReactions | undefined) => string;
|
|
647
|
-
CHANNEL_FOLLOW: (channelId: BigString) => string;
|
|
648
|
-
CHANNEL_MESSAGE_CROSSPOST: (channelId: BigString, messageId: BigString) => string;
|
|
649
|
-
CHANNEL_OVERWRITE: (channelId: BigString, overwriteId: BigString) => string;
|
|
650
|
-
CHANNEL_TYPING: (channelId: BigString) => string;
|
|
651
|
-
THREAD_START_PUBLIC: (channelId: BigString, messageId: BigString) => string;
|
|
652
|
-
THREAD_START_PRIVATE: (channelId: BigString) => string;
|
|
653
|
-
THREAD_ACTIVE: (guildId: BigString) => string;
|
|
654
|
-
THREAD_MEMBERS: (channelId: BigString) => string;
|
|
655
|
-
THREAD_ME: (channelId: BigString) => string;
|
|
656
|
-
THREAD_USER: (channelId: BigString, userId: BigString) => string;
|
|
657
|
-
THREAD_ARCHIVED: (channelId: BigString) => string;
|
|
658
|
-
THREAD_ARCHIVED_PUBLIC: (channelId: BigString, options?: helpers.ListArchivedThreads | undefined) => string;
|
|
659
|
-
THREAD_ARCHIVED_PRIVATE: (channelId: BigString, options?: helpers.ListArchivedThreads | undefined) => string;
|
|
660
|
-
THREAD_ARCHIVED_PRIVATE_JOINED: (channelId: BigString, options?: helpers.ListArchivedThreads | undefined) => string;
|
|
661
|
-
FORUM_START: (channelId: BigString) => string;
|
|
662
|
-
GUILD: (guildId: BigString, withCounts?: boolean | undefined) => string;
|
|
663
|
-
GUILDS: () => string;
|
|
664
|
-
GUILD_AUDIT_LOGS: (guildId: BigString, options?: helpers.GetGuildAuditLog | undefined) => string;
|
|
665
|
-
GUILD_BAN: (guildId: BigString, userId: BigString) => string;
|
|
666
|
-
GUILD_BANS: (guildId: BigString, options?: helpers.GetBans | undefined) => string;
|
|
667
|
-
GUILD_BANNER: (guildId: BigString, icon: string) => string;
|
|
668
|
-
GUILD_CHANNELS: (guildId: BigString) => string;
|
|
669
|
-
GUILD_WIDGET: (guildId: BigString) => string;
|
|
670
|
-
GUILD_WIDGET_JSON: (guildId: BigString) => string;
|
|
671
|
-
GUILD_WIDGET_IMAGE: (guildId: BigString, style?: "shield" | "banner1" | "banner2" | "banner3" | "banner4" | undefined) => string;
|
|
672
|
-
GUILD_EMOJI: (guildId: BigString, emojiId: BigString) => string;
|
|
673
|
-
GUILD_EMOJIS: (guildId: BigString) => string;
|
|
674
|
-
GUILD_ICON: (guildId: BigString, icon: string) => string;
|
|
675
|
-
GUILD_INTEGRATION: (guildId: BigString, integrationId: BigString) => string;
|
|
676
|
-
GUILD_INTEGRATION_SYNC: (guildId: BigString, integrationId: BigString) => string;
|
|
677
|
-
GUILD_INTEGRATIONS: (guildId: BigString) => string;
|
|
678
|
-
GUILD_INVITES: (guildId: BigString) => string;
|
|
679
|
-
GUILD_LEAVE: (guildId: BigString) => string;
|
|
680
|
-
GUILD_MEMBER: (guildId: BigString, userId: BigString) => string;
|
|
681
|
-
GUILD_MEMBERS: (guildId: BigString, options?: helpers.ListGuildMembers | undefined) => string;
|
|
682
|
-
GUILD_MEMBER_ROLE: (guildId: BigString, memberId: BigString, roleId: BigString) => string;
|
|
683
|
-
GUILD_MEMBERS_SEARCH: (guildId: BigString, query: string, options?: {
|
|
684
|
-
limit?: number | undefined;
|
|
685
|
-
} | undefined) => string;
|
|
686
|
-
GUILD_PRUNE: (guildId: BigString, options?: helpers.GetGuildPruneCountQuery | undefined) => string;
|
|
687
|
-
GUILD_REGIONS: (guildId: BigString) => string;
|
|
688
|
-
GUILD_ROLE: (guildId: BigString, roleId: BigString) => string;
|
|
689
|
-
GUILD_ROLES: (guildId: BigString) => string;
|
|
690
|
-
GUILD_SPLASH: (guildId: BigString, icon: string) => string;
|
|
691
|
-
GUILD_VANITY_URL: (guildId: BigString) => string;
|
|
692
|
-
GUILD_WEBHOOKS: (guildId: BigString) => string;
|
|
693
|
-
TEMPLATE: (code: string) => string;
|
|
694
|
-
GUILD_TEMPLATE: (guildId: BigString, code: string) => string;
|
|
695
|
-
GUILD_TEMPLATES: (guildId: BigString) => string;
|
|
696
|
-
GUILD_PREVIEW: (guildId: BigString) => string;
|
|
697
|
-
UPDATE_VOICE_STATE: (guildId: BigString, userId?: BigString | undefined) => string;
|
|
698
|
-
GUILD_WELCOME_SCREEN: (guildId: BigString) => string;
|
|
699
|
-
GUILD_SCHEDULED_EVENTS: (guildId: BigString, withUserCount?: boolean | undefined) => string;
|
|
700
|
-
GUILD_SCHEDULED_EVENT: (guildId: BigString, eventId: BigString, withUserCount?: boolean | undefined) => string;
|
|
701
|
-
GUILD_SCHEDULED_EVENT_USERS: (guildId: BigString, eventId: BigString, options?: helpers.GetScheduledEventUsers | undefined) => string;
|
|
702
|
-
GUILD_MFA_LEVEL: (guildId: BigString) => string;
|
|
703
|
-
VOICE_REGIONS: () => string;
|
|
704
|
-
INVITE: (inviteCode: string, options?: helpers.GetInvite | undefined) => string;
|
|
705
|
-
WEBHOOK: (webhookId: BigString, token: string, options?: {
|
|
706
|
-
wait?: boolean | undefined;
|
|
707
|
-
threadId?: BigString | undefined;
|
|
708
|
-
} | undefined) => string;
|
|
709
|
-
WEBHOOK_ID: (webhookId: BigString) => string;
|
|
710
|
-
WEBHOOK_MESSAGE: (webhookId: BigString, token: string, messageId: BigString, options?: {
|
|
711
|
-
threadId?: BigString | undefined;
|
|
712
|
-
} | undefined) => string;
|
|
713
|
-
WEBHOOK_MESSAGE_ORIGINAL: (webhookId: BigString, token: string, options?: {
|
|
714
|
-
threadId?: BigString | undefined;
|
|
715
|
-
} | undefined) => string;
|
|
716
|
-
WEBHOOK_SLACK: (webhookId: BigString, token: string) => string;
|
|
717
|
-
WEBHOOK_GITHUB: (webhookId: BigString, token: string) => string;
|
|
718
|
-
COMMANDS: (applicationId: BigString) => string;
|
|
719
|
-
COMMANDS_GUILD: (applicationId: BigString, guildId: BigString) => string;
|
|
720
|
-
COMMANDS_PERMISSIONS: (applicationId: BigString, guildId: BigString) => string;
|
|
721
|
-
COMMANDS_PERMISSION: (applicationId: BigString, guildId: BigString, commandId: BigString) => string;
|
|
722
|
-
COMMANDS_ID: (applicationId: BigString, commandId: BigString, withLocalizations?: boolean | undefined) => string;
|
|
723
|
-
COMMANDS_GUILD_ID: (applicationId: BigString, guildId: BigString, commandId: BigString, withLocalizations?: boolean | undefined) => string;
|
|
724
|
-
INTERACTION_ID_TOKEN: (interactionId: BigString, token: string) => string;
|
|
725
|
-
INTERACTION_ORIGINAL_ID_TOKEN: (interactionId: BigString, token: string) => string;
|
|
726
|
-
INTERACTION_ID_TOKEN_MESSAGE_ID: (applicationId: BigString, token: string, messageId: BigString) => string;
|
|
727
|
-
USER: (userId: BigString) => string;
|
|
728
|
-
USER_BOT: () => string;
|
|
729
|
-
USER_GUILDS: () => string;
|
|
730
|
-
USER_AVATAR: (userId: BigString, icon: string) => string;
|
|
731
|
-
USER_DEFAULT_AVATAR: (icon: number) => string;
|
|
732
|
-
USER_DM: () => string;
|
|
733
|
-
USER_CONNECTIONS: () => string;
|
|
734
|
-
USER_NICK: (guildId: BigString) => string;
|
|
735
|
-
DISCOVERY_CATEGORIES: () => string;
|
|
736
|
-
DISCOVERY_VALID_TERM: (term: string) => string;
|
|
737
|
-
DISCOVERY_METADATA: (guildId: BigString) => string;
|
|
738
|
-
DISCOVERY_SUBCATEGORY: (guildId: BigString, categoryId: number) => string;
|
|
739
|
-
OAUTH2_APPLICATION: () => string;
|
|
740
|
-
STAGE_INSTANCES: () => string;
|
|
741
|
-
STAGE_INSTANCE: (channelId: BigString) => string;
|
|
742
|
-
NITRO_STICKER_PACKS: () => string;
|
|
743
|
-
STICKER: (stickerId: bigint) => string;
|
|
744
|
-
GUILD_STICKERS: (guildId: bigint) => string;
|
|
745
|
-
GUILD_STICKER: (guildId: bigint, stickerId: bigint) => string;
|
|
746
|
-
};
|
|
747
|
-
regexes: {
|
|
748
|
-
SLASH_COMMANDS_NAME_REGEX: RegExp;
|
|
749
|
-
CONTEXT_MENU_COMMANDS_NAME_REGEX: RegExp;
|
|
750
|
-
CHANNEL_MENTION_REGEX: RegExp;
|
|
751
|
-
DISCORD_SNOWFLAKE_REGEX: RegExp;
|
|
752
|
-
};
|
|
753
|
-
Errors: typeof Errors;
|
|
754
|
-
};
|
|
755
|
-
export interface BotGatewayHandlerOptions {
|
|
756
|
-
READY: typeof handlers.handleReady;
|
|
757
|
-
CHANNEL_CREATE: typeof handlers.handleChannelCreate;
|
|
758
|
-
CHANNEL_DELETE: typeof handlers.handleChannelDelete;
|
|
759
|
-
CHANNEL_PINS_UPDATE: typeof handlers.handleChannelPinsUpdate;
|
|
760
|
-
CHANNEL_UPDATE: typeof handlers.handleChannelUpdate;
|
|
761
|
-
THREAD_CREATE: typeof handlers.handleThreadCreate;
|
|
762
|
-
THREAD_UPDATE: typeof handlers.handleThreadUpdate;
|
|
763
|
-
THREAD_DELETE: typeof handlers.handleThreadDelete;
|
|
764
|
-
THREAD_LIST_SYNC: typeof handlers.handleThreadListSync;
|
|
765
|
-
THREAD_MEMBERS_UPDATE: typeof handlers.handleThreadMembersUpdate;
|
|
766
|
-
STAGE_INSTANCE_CREATE: typeof handlers.handleStageInstanceCreate;
|
|
767
|
-
STAGE_INSTANCE_UPDATE: typeof handlers.handleStageInstanceUpdate;
|
|
768
|
-
STAGE_INSTANCE_DELETE: typeof handlers.handleStageInstanceDelete;
|
|
769
|
-
GUILD_BAN_ADD: typeof handlers.handleGuildBanAdd;
|
|
770
|
-
GUILD_BAN_REMOVE: typeof handlers.handleGuildBanRemove;
|
|
771
|
-
GUILD_CREATE: typeof handlers.handleGuildCreate;
|
|
772
|
-
GUILD_DELETE: typeof handlers.handleGuildDelete;
|
|
773
|
-
GUILD_EMOJIS_UPDATE: typeof handlers.handleGuildEmojisUpdate;
|
|
774
|
-
GUILD_INTEGRATIONS_UPDATE: typeof handlers.handleGuildIntegrationsUpdate;
|
|
775
|
-
GUILD_MEMBER_ADD: typeof handlers.handleGuildMemberAdd;
|
|
776
|
-
GUILD_MEMBER_REMOVE: typeof handlers.handleGuildMemberRemove;
|
|
777
|
-
GUILD_MEMBER_UPDATE: typeof handlers.handleGuildMemberUpdate;
|
|
778
|
-
GUILD_MEMBERS_CHUNK: typeof handlers.handleGuildMembersChunk;
|
|
779
|
-
GUILD_ROLE_CREATE: typeof handlers.handleGuildRoleCreate;
|
|
780
|
-
GUILD_ROLE_DELETE: typeof handlers.handleGuildRoleDelete;
|
|
781
|
-
GUILD_ROLE_UPDATE: typeof handlers.handleGuildRoleUpdate;
|
|
782
|
-
GUILD_SCHEDULED_EVENT_CREATE: typeof handlers.handleGuildScheduledEventCreate;
|
|
783
|
-
GUILD_SCHEDULED_EVENT_DELETE: typeof handlers.handleGuildScheduledEventDelete;
|
|
784
|
-
GUILD_SCHEDULED_EVENT_UPDATE: typeof handlers.handleGuildScheduledEventUpdate;
|
|
785
|
-
GUILD_SCHEDULED_EVENT_USER_ADD: typeof handlers.handleGuildScheduledEventUserAdd;
|
|
786
|
-
GUILD_SCHEDULED_EVENT_USER_REMOVE: typeof handlers.handleGuildScheduledEventUserRemove;
|
|
787
|
-
GUILD_UPDATE: typeof handlers.handleGuildUpdate;
|
|
788
|
-
INTERACTION_CREATE: typeof handlers.handleInteractionCreate;
|
|
789
|
-
INVITE_CREATE: typeof handlers.handleInviteCreate;
|
|
790
|
-
INVITE_DELETE: typeof handlers.handleInviteCreate;
|
|
791
|
-
MESSAGE_CREATE: typeof handlers.handleMessageCreate;
|
|
792
|
-
MESSAGE_DELETE_BULK: typeof handlers.handleMessageDeleteBulk;
|
|
793
|
-
MESSAGE_DELETE: typeof handlers.handleMessageDelete;
|
|
794
|
-
MESSAGE_REACTION_ADD: typeof handlers.handleMessageReactionAdd;
|
|
795
|
-
MESSAGE_REACTION_REMOVE_ALL: typeof handlers.handleMessageReactionRemoveAll;
|
|
796
|
-
MESSAGE_REACTION_REMOVE_EMOJI: typeof handlers.handleMessageReactionRemoveEmoji;
|
|
797
|
-
MESSAGE_REACTION_REMOVE: typeof handlers.handleMessageReactionRemove;
|
|
798
|
-
MESSAGE_UPDATE: typeof handlers.handleMessageUpdate;
|
|
799
|
-
PRESENCE_UPDATE: typeof handlers.handlePresenceUpdate;
|
|
800
|
-
TYPING_START: typeof handlers.handleTypingStart;
|
|
801
|
-
USER_UPDATE: typeof handlers.handleUserUpdate;
|
|
802
|
-
VOICE_SERVER_UPDATE: typeof handlers.handleVoiceServerUpdate;
|
|
803
|
-
VOICE_STATE_UPDATE: typeof handlers.handleVoiceStateUpdate;
|
|
804
|
-
WEBHOOKS_UPDATE: typeof handlers.handleWebhooksUpdate;
|
|
805
|
-
INTEGRATION_CREATE: typeof handlers.handleIntegrationCreate;
|
|
806
|
-
INTEGRATION_UPDATE: typeof handlers.handleIntegrationUpdate;
|
|
807
|
-
INTEGRATION_DELETE: typeof handlers.handleIntegrationDelete;
|
|
34
|
+
dispatchRequirements: (payload: Camelize<DiscordGatewayPayload>, shard: Shard) => unknown;
|
|
35
|
+
raw: (payload: Camelize<DiscordGatewayPayload>, shard: Shard) => unknown;
|
|
36
|
+
ready: (payload: Camelize<DiscordReady>, shard: Shard) => unknown;
|
|
37
|
+
applicationCommandPermissionsUpdate: (payload: Camelize<DiscordGuildApplicationCommandPermissions>, shard: Shard) => unknown;
|
|
38
|
+
autoModerationRuleCreate: (payload: Camelize<DiscordAutoModerationRule>, shard: Shard) => unknown;
|
|
39
|
+
autoModerationRuleUpdate: (payload: Camelize<DiscordAutoModerationRule>, shard: Shard) => unknown;
|
|
40
|
+
autoModerationRuleDelete: (payload: Camelize<DiscordAutoModerationRule>, shard: Shard) => unknown;
|
|
41
|
+
autoModerationActionExecution: (payload: Camelize<DiscordAutoModerationActionExecution>, shard: Shard) => unknown;
|
|
42
|
+
channelCreate: (payload: Camelize<DiscordChannel>, shard: Shard) => unknown;
|
|
43
|
+
channelUpdate: (payload: Camelize<DiscordChannel>, shard: Shard) => unknown;
|
|
44
|
+
channelDelete: (payload: Camelize<DiscordChannel>, shard: Shard) => unknown;
|
|
45
|
+
channelPinsUpdate: (payload: Camelize<DiscordChannelPinsUpdate>, shard: Shard) => unknown;
|
|
46
|
+
threadCreate: (payload: Camelize<DiscordChannel>, shard: Shard) => unknown;
|
|
47
|
+
threadUpdate: (payload: Camelize<DiscordChannel>, shard: Shard) => unknown;
|
|
48
|
+
threadDelete: (payload: Camelize<DiscordChannel>, shard: Shard) => unknown;
|
|
49
|
+
threadListSync: (payload: Camelize<DiscordThreadListSync>, shard: Shard) => unknown;
|
|
50
|
+
threadMemberUpdate: (payload: Camelize<DiscordThreadMemberUpdate>, shard: Shard) => unknown;
|
|
51
|
+
threadMembersUpdate: (payload: Camelize<DiscordThreadMembersUpdate>, shard: Shard) => unknown;
|
|
52
|
+
guildCreate: (payload: Camelize<DiscordGuild>, shard: Shard) => unknown;
|
|
53
|
+
guildUpdate: (payload: Camelize<DiscordGuild>, shard: Shard) => unknown;
|
|
54
|
+
guildDelete: (payload: Camelize<DiscordUnavailableGuild>, shard: Shard) => unknown;
|
|
55
|
+
guildBanAdd: (payload: Camelize<DiscordGuildBanAddRemove>, shard: Shard) => unknown;
|
|
56
|
+
guildBanRemove: (payload: Camelize<DiscordGuildBanAddRemove>, shard: Shard) => unknown;
|
|
57
|
+
guildEmojisUpdate: (payload: Camelize<DiscordGuildEmojisUpdate>, shard: Shard) => unknown;
|
|
58
|
+
guildStickersUpdate: (payload: Camelize<DiscordGuildStickersUpdate>, shard: Shard) => unknown;
|
|
59
|
+
guildIntegrationsUpdate: (payload: Camelize<DiscordIntegrationCreateUpdate>, shard: Shard) => unknown;
|
|
60
|
+
guildMemberAdd: (payload: Camelize<DiscordGuildMemberAdd>, shard: Shard) => unknown;
|
|
61
|
+
guildMemberRemove: (payload: Camelize<DiscordGuildMemberRemove>, shard: Shard) => unknown;
|
|
62
|
+
guildMemberUpdate: (payload: Camelize<DiscordGuildMemberUpdate>, shard: Shard) => unknown;
|
|
63
|
+
guildMembersChunk: (payload: Camelize<DiscordGuildMembersChunk>, shard: Shard) => unknown;
|
|
64
|
+
guildRoleCreate: (payload: Camelize<DiscordGuildRoleCreate>, shard: Shard) => unknown;
|
|
65
|
+
guildRoleUpdate: (payload: Camelize<DiscordGuildRoleUpdate>, shard: Shard) => unknown;
|
|
66
|
+
guildRoleDelete: (payload: Camelize<DiscordGuildRoleDelete>, shard: Shard) => unknown;
|
|
67
|
+
guildScheduledEventCreate: (payload: Camelize<DiscordScheduledEvent>, shard: Shard) => unknown;
|
|
68
|
+
guildScheduledEventUpdate: (payload: Camelize<DiscordScheduledEvent>, shard: Shard) => unknown;
|
|
69
|
+
guildScheduledEventDelete: (payload: Camelize<DiscordScheduledEvent>, shard: Shard) => unknown;
|
|
70
|
+
guildScheduledEventUserAdd: (payload: Camelize<DiscordScheduledEventUserAdd>, shard: Shard) => unknown;
|
|
71
|
+
guildScheduledEventUserRemove: (payload: Camelize<DiscordScheduledEventUserRemove>, shard: Shard) => unknown;
|
|
72
|
+
integrationCreate: (payload: Camelize<DiscordIntegrationCreateUpdate>, shard: Shard) => unknown;
|
|
73
|
+
integrationUpdate: (payload: Camelize<DiscordIntegrationCreateUpdate>, shard: Shard) => unknown;
|
|
74
|
+
integrationDelete: (payload: Camelize<DiscordIntegrationDelete>, shard: Shard) => unknown;
|
|
75
|
+
interactionCreate: (payload: Camelize<DiscordInteraction>, shard: Shard) => unknown;
|
|
76
|
+
inviteCreate: (payload: Camelize<DiscordInviteCreate>, shard: Shard) => unknown;
|
|
77
|
+
inviteDelete: (payload: Camelize<DiscordInviteDelete>, shard: Shard) => unknown;
|
|
78
|
+
messageCreate: (payload: Camelize<DiscordMessage>, shard: Shard) => unknown;
|
|
79
|
+
messageUpdate: (payload: Camelize<DiscordMessage>, shard: Shard) => unknown;
|
|
80
|
+
messageDelete: (payload: Camelize<DiscordMessageDelete>, shard: Shard) => unknown;
|
|
81
|
+
messageDeleteBulk: (payload: Camelize<DiscordMessageDeleteBulk>, shard: Shard) => unknown;
|
|
82
|
+
messageReactionAdd: (payload: Camelize<DiscordMessageReactionAdd>, shard: Shard) => unknown;
|
|
83
|
+
messageReactionRemove: (payload: Camelize<DiscordMessageReactionRemove>, shard: Shard) => unknown;
|
|
84
|
+
messageReactionRemoveAll: (payload: Camelize<DiscordMessageReactionRemoveAll>, shard: Shard) => unknown;
|
|
85
|
+
messageReactionRemoveEmoji: (payload: Camelize<DiscordMessageReactionRemoveEmoji>, shard: Shard) => unknown;
|
|
86
|
+
presenceUpdate: (payload: Camelize<DiscordPresenceUpdate>, shard: Shard) => unknown;
|
|
87
|
+
stageInstanceCreate: (payload: Camelize<DiscordStageInstance>, shard: Shard) => unknown;
|
|
88
|
+
stageInstanceUpdate: (payload: Camelize<DiscordStageInstance>, shard: Shard) => unknown;
|
|
89
|
+
stageInstanceDelete: (payload: Camelize<DiscordStageInstance>, shard: Shard) => unknown;
|
|
90
|
+
typingStart: (payload: Camelize<DiscordTypingStart>, shard: Shard) => unknown;
|
|
91
|
+
userUpdate: (payload: Camelize<DiscordUser>, shard: Shard) => unknown;
|
|
92
|
+
voiceStateUpdate: (payload: Camelize<DiscordVoiceState>, shard: Shard) => unknown;
|
|
93
|
+
voiceServerUpdate: (payload: Camelize<DiscordVoiceServerUpdate>, shard: Shard) => unknown;
|
|
94
|
+
webhooksUpdate: (payload: Camelize<DiscordWebhookUpdate>, shard: Shard) => unknown;
|
|
808
95
|
}
|
|
809
|
-
export declare function createBotGatewayHandlers(options: Partial<BotGatewayHandlerOptions>): Record<GatewayDispatchEventNames, (bot: Bot, data: DiscordGatewayPayload, shardId: number) => any>;
|
|
810
|
-
export type RemoveFirstFromTuple<T extends any[]> = T['length'] extends 0 ? [] : ((...b: T) => void) extends (a: any, ...b: infer I) => void ? I : [];
|
|
811
|
-
export type FinalHelpers = {
|
|
812
|
-
[K in keyof Helpers]: (...args: RemoveFirstFromTuple<Parameters<Helpers[K]>>) => ReturnType<Helpers[K]>;
|
|
813
|
-
};
|
|
814
96
|
//# sourceMappingURL=bot.d.ts.map
|