@wolfstar/plugin-gateway 0.7.0-next-20260928135015 → 0.7.0
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/esm/index.d.ts +595 -4
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +784 -5
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { Client, Listener, container } from "@wolfstar/http-framework";
|
|
|
2
2
|
import { CloseCodes, DefaultWebSocketManagerOptions, WebSocketManager, WebSocketShardEvents, WebSocketShardStatus } from "@discordjs/ws";
|
|
3
3
|
import { Client as Client$1 } from "@discordjs/core";
|
|
4
4
|
import { applyGatewayDispatch, autoModerationRuleKey, banKey, createCache, emojiKey, integrationKey, inviteKey, isIterableCache, memberKey, mergeValues, messageKey, presenceKey, roleKey, scheduledEventKey, soundboardSoundKey, stageInstanceKey, stickerKey, threadMemberKey, voiceStateKey } from "@wolfstar/plugin-cache";
|
|
5
|
-
import { ActivityType, AuditLogEvent, ChannelType, FormattingPatterns, GatewayDispatchEvents, GatewayIntentBits, GatewayOpcodes, GuildFeature, GuildMemberFlags, GuildPremiumTier, GuildScheduledEventStatus, GuildSystemChannelFlags, GuildWidgetStyle, InviteType, MessageFlags, MessageReferenceType, MessageType, OverwriteType, PermissionFlagsBits, PresenceUpdateStatus, RoleFlags, RouteBases, Routes, StickerFormatType, UserFlags, WebhookType } from "discord-api-types/v10";
|
|
6
|
-
import { Activity as Activity$1, ActivityFlagsBitField as ActivityFlagsBitField$1, AnnouncementChannel as AnnouncementChannel$1, AnnouncementThreadChannel as AnnouncementThreadChannel$1, Attachment as Attachment$1, AttachmentFlagsBitField as AttachmentFlagsBitField$1, AutoModerationRule as AutoModerationRule$1, BitField, BitField as BitField$1, CategoryChannel as CategoryChannel$1, Channel as Channel$1, ChannelFlagsBitField as ChannelFlagsBitField$1, DMChannel as DMChannel$1, Embed as Embed$1, Emoji as Emoji$1, ForumChannel as ForumChannel$1, GroupDMChannel as GroupDMChannel$1, Invite, MediaChannel as MediaChannel$1, Message as Message$1, MessageFlagsBitField as MessageFlagsBitField$1, PermissionsBitField, Poll as Poll$1, PollAnswer as PollAnswer$1, Presence as Presence$1, PrivateThreadChannel as PrivateThreadChannel$1, PublicThreadChannel as PublicThreadChannel$1, Reaction, SoundboardSound as SoundboardSound$1, StageChannel as StageChannel$1, StageInstance as StageInstance$1, Sticker as Sticker$1, StickerPack as StickerPack$1, Structure as Structure$1, TextChannel as TextChannel$1, User as User$1, VoiceChannel as VoiceChannel$1, VoiceState as VoiceState$1, Webhook as Webhook$1 } from "@discordjs/structures";
|
|
5
|
+
import { ActivityType, AuditLogEvent, ButtonStyle, ChannelType, ComponentType, FormattingPatterns, GatewayDispatchEvents, GatewayIntentBits, GatewayOpcodes, GuildFeature, GuildMemberFlags, GuildPremiumTier, GuildScheduledEventStatus, GuildSystemChannelFlags, GuildWidgetStyle, InviteType, MessageFlags, MessageReferenceType, MessageType, OverwriteType, PermissionFlagsBits, PresenceUpdateStatus, RoleFlags, RouteBases, Routes, SeparatorSpacingSize, StickerFormatType, UserFlags, WebhookType } from "discord-api-types/v10";
|
|
6
|
+
import { ActionRowComponent, Activity as Activity$1, ActivityFlagsBitField as ActivityFlagsBitField$1, AnnouncementChannel as AnnouncementChannel$1, AnnouncementThreadChannel as AnnouncementThreadChannel$1, Attachment as Attachment$1, AttachmentFlagsBitField as AttachmentFlagsBitField$1, AutoModerationRule as AutoModerationRule$1, BitField, BitField as BitField$1, CategoryChannel as CategoryChannel$1, Channel as Channel$1, ChannelFlagsBitField as ChannelFlagsBitField$1, ChannelSelectMenuComponent as ChannelSelectMenuComponent$1, Component as Component$1, ContainerComponent as ContainerComponent$1, DMChannel as DMChannel$1, Embed as Embed$1, Emoji as Emoji$1, FileComponent as FileComponent$1, FileUploadComponent as FileUploadComponent$1, ForumChannel as ForumChannel$1, GroupDMChannel as GroupDMChannel$1, InteractiveButtonComponent as InteractiveButtonComponent$1, Invite, LinkButtonComponent as LinkButtonComponent$1, MediaChannel as MediaChannel$1, MediaGalleryComponent as MediaGalleryComponent$1, MediaGalleryItem as MediaGalleryItem$1, MentionableSelectMenuComponent as MentionableSelectMenuComponent$1, Message as Message$1, MessageFlagsBitField as MessageFlagsBitField$1, PermissionsBitField, Poll as Poll$1, PollAnswer as PollAnswer$1, PremiumButtonComponent as PremiumButtonComponent$1, Presence as Presence$1, PrivateThreadChannel as PrivateThreadChannel$1, PublicThreadChannel as PublicThreadChannel$1, Reaction, RoleSelectMenuComponent as RoleSelectMenuComponent$1, SectionComponent as SectionComponent$1, SeparatorComponent as SeparatorComponent$1, SoundboardSound as SoundboardSound$1, StageChannel as StageChannel$1, StageInstance as StageInstance$1, Sticker as Sticker$1, StickerPack as StickerPack$1, StringSelectMenuComponent as StringSelectMenuComponent$1, Structure as Structure$1, TextChannel as TextChannel$1, TextDisplayComponent as TextDisplayComponent$1, TextInputComponent as TextInputComponent$1, ThumbnailComponent as ThumbnailComponent$1, UnfurledMediaItem as UnfurledMediaItem$1, User as User$1, UserSelectMenuComponent as UserSelectMenuComponent$1, VoiceChannel as VoiceChannel$1, VoiceState as VoiceState$1, Webhook as Webhook$1 } from "@discordjs/structures";
|
|
7
7
|
import { readFile } from "node:fs/promises";
|
|
8
8
|
import { basename } from "node:path";
|
|
9
9
|
import { CDN, DiscordAPIError } from "@discordjs/rest";
|
|
@@ -8959,6 +8959,784 @@ function definedEntries(value) {
|
|
|
8959
8959
|
return Object.entries(value).filter(([, entry]) => entry !== void 0);
|
|
8960
8960
|
}
|
|
8961
8961
|
|
|
8962
|
+
//#endregion
|
|
8963
|
+
//#region src/structures/components/Component.ts
|
|
8964
|
+
/**
|
|
8965
|
+
* The members every component of this package shares, mixed into each of them.
|
|
8966
|
+
*/
|
|
8967
|
+
var ComponentMixin = class {
|
|
8968
|
+
/**
|
|
8969
|
+
* Whether this component has the same data as another one, nested components included.
|
|
8970
|
+
*
|
|
8971
|
+
* @param other The component, or raw component data, to compare with.
|
|
8972
|
+
*/
|
|
8973
|
+
equals(other) {
|
|
8974
|
+
return isDeepEqual(this.toJSON(), other instanceof Component ? other.toJSON() : other);
|
|
8975
|
+
}
|
|
8976
|
+
};
|
|
8977
|
+
/**
|
|
8978
|
+
* A component of a message or a modal: `@discordjs/structures`' `Component`, like discord.js' `Component`.
|
|
8979
|
+
*
|
|
8980
|
+
* @remarks
|
|
8981
|
+
* Each component type has its own class, like `ActionRow` or `ButtonComponent`s, which `createComponent` picks for a raw
|
|
8982
|
+
* component. This class is only instantiated for the types it has no class for. Their raw data is kept as received,
|
|
8983
|
+
* nested components included, so `toJSON` serializes them back to the API.
|
|
8984
|
+
*
|
|
8985
|
+
* @typeParam Data The raw data of the component.
|
|
8986
|
+
*/
|
|
8987
|
+
var Component = class Component extends Component$1 {
|
|
8988
|
+
/**
|
|
8989
|
+
* Whether a value is a component of this package. Most components extend `@discordjs/structures`' own rather than
|
|
8990
|
+
* this class, so `instanceof Component` matches any `@discordjs/structures` component carrying
|
|
8991
|
+
* {@link StructureMixin}. Subclasses keep the default `instanceof` behavior.
|
|
8992
|
+
*
|
|
8993
|
+
* @param value The value to check.
|
|
8994
|
+
*/
|
|
8995
|
+
static [Symbol.hasInstance](value) {
|
|
8996
|
+
if (this !== Component) return Function.prototype[Symbol.hasInstance].call(this, value);
|
|
8997
|
+
return value instanceof Component$1 && kRelations in value;
|
|
8998
|
+
}
|
|
8999
|
+
/**
|
|
9000
|
+
* @param data The raw component.
|
|
9001
|
+
* @param relations The related structures, resolved from the cache.
|
|
9002
|
+
*/
|
|
9003
|
+
constructor(data, relations = {}) {
|
|
9004
|
+
super(data);
|
|
9005
|
+
initStructure(this, data, relations);
|
|
9006
|
+
}
|
|
9007
|
+
};
|
|
9008
|
+
Mixin(Component, [StructureMixin, ComponentMixin]);
|
|
9009
|
+
|
|
9010
|
+
//#endregion
|
|
9011
|
+
//#region src/structures/components/ActionRow.ts
|
|
9012
|
+
/**
|
|
9013
|
+
* An action row, holding buttons, a select menu, or a text input: `@discordjs/structures`' `ActionRowComponent`, with
|
|
9014
|
+
* its components like discord.js' `ActionRow`.
|
|
9015
|
+
*
|
|
9016
|
+
* @typeParam Child The components of the row.
|
|
9017
|
+
*/
|
|
9018
|
+
var ActionRow = class extends ActionRowComponent {
|
|
9019
|
+
/**
|
|
9020
|
+
* @param data The raw action row.
|
|
9021
|
+
* @param relations The related structures, resolved from the cache.
|
|
9022
|
+
*/
|
|
9023
|
+
constructor(data, relations = {}) {
|
|
9024
|
+
super(data);
|
|
9025
|
+
initStructure(this, data, relations);
|
|
9026
|
+
}
|
|
9027
|
+
/**
|
|
9028
|
+
* The components in this action row.
|
|
9029
|
+
*/
|
|
9030
|
+
get components() {
|
|
9031
|
+
return this[kData].components.map((component) => createComponent(component));
|
|
9032
|
+
}
|
|
9033
|
+
};
|
|
9034
|
+
Mixin(ActionRow, [StructureMixin, ComponentMixin]);
|
|
9035
|
+
|
|
9036
|
+
//#endregion
|
|
9037
|
+
//#region src/structures/components/ChannelSelectMenuComponent.ts
|
|
9038
|
+
/**
|
|
9039
|
+
* A select menu of channels: `@discordjs/structures`' `ChannelSelectMenuComponent`, like discord.js'.
|
|
9040
|
+
*/
|
|
9041
|
+
var ChannelSelectMenuComponent = class extends ChannelSelectMenuComponent$1 {
|
|
9042
|
+
/**
|
|
9043
|
+
* @param data The raw select menu.
|
|
9044
|
+
* @param relations The related structures, resolved from the cache.
|
|
9045
|
+
*/
|
|
9046
|
+
constructor(data, relations = {}) {
|
|
9047
|
+
super(data);
|
|
9048
|
+
initStructure(this, data, relations);
|
|
9049
|
+
}
|
|
9050
|
+
/**
|
|
9051
|
+
* Whether the select menu is disabled.
|
|
9052
|
+
*/
|
|
9053
|
+
get disabled() {
|
|
9054
|
+
return this[kData].disabled ?? false;
|
|
9055
|
+
}
|
|
9056
|
+
/**
|
|
9057
|
+
* The values selected by default.
|
|
9058
|
+
*/
|
|
9059
|
+
get defaultValues() {
|
|
9060
|
+
return this[kData].default_values ?? [];
|
|
9061
|
+
}
|
|
9062
|
+
};
|
|
9063
|
+
Mixin(ChannelSelectMenuComponent, [StructureMixin, ComponentMixin]);
|
|
9064
|
+
|
|
9065
|
+
//#endregion
|
|
9066
|
+
//#region src/structures/components/CheckboxComponent.ts
|
|
9067
|
+
/**
|
|
9068
|
+
* A modal component for a binary choice.
|
|
9069
|
+
*/
|
|
9070
|
+
var CheckboxComponent = class extends Component {
|
|
9071
|
+
/**
|
|
9072
|
+
* The custom ID of the checkbox.
|
|
9073
|
+
*/
|
|
9074
|
+
get customId() {
|
|
9075
|
+
return this[kData].custom_id;
|
|
9076
|
+
}
|
|
9077
|
+
/**
|
|
9078
|
+
* Whether the checkbox is checked by default.
|
|
9079
|
+
*/
|
|
9080
|
+
get default() {
|
|
9081
|
+
return this[kData].default ?? false;
|
|
9082
|
+
}
|
|
9083
|
+
};
|
|
9084
|
+
|
|
9085
|
+
//#endregion
|
|
9086
|
+
//#region src/structures/components/CheckboxGroupComponent.ts
|
|
9087
|
+
/**
|
|
9088
|
+
* A modal component to pick any of its options.
|
|
9089
|
+
*/
|
|
9090
|
+
var CheckboxGroupComponent = class extends Component {
|
|
9091
|
+
/**
|
|
9092
|
+
* The custom ID of the checkbox group.
|
|
9093
|
+
*/
|
|
9094
|
+
get customId() {
|
|
9095
|
+
return this[kData].custom_id;
|
|
9096
|
+
}
|
|
9097
|
+
/**
|
|
9098
|
+
* The options of the checkbox group.
|
|
9099
|
+
*/
|
|
9100
|
+
get options() {
|
|
9101
|
+
return this[kData].options;
|
|
9102
|
+
}
|
|
9103
|
+
/**
|
|
9104
|
+
* The minimum number of options to pick, `1` by default.
|
|
9105
|
+
*/
|
|
9106
|
+
get minValues() {
|
|
9107
|
+
return this[kData].min_values ?? 1;
|
|
9108
|
+
}
|
|
9109
|
+
/**
|
|
9110
|
+
* The maximum number of options to pick, the number of options by default.
|
|
9111
|
+
*/
|
|
9112
|
+
get maxValues() {
|
|
9113
|
+
return this[kData].max_values ?? this.options.length;
|
|
9114
|
+
}
|
|
9115
|
+
/**
|
|
9116
|
+
* Whether picking options is required to submit the modal, `true` by default.
|
|
9117
|
+
*/
|
|
9118
|
+
get required() {
|
|
9119
|
+
return this[kData].required ?? true;
|
|
9120
|
+
}
|
|
9121
|
+
};
|
|
9122
|
+
|
|
9123
|
+
//#endregion
|
|
9124
|
+
//#region src/structures/components/ContainerComponent.ts
|
|
9125
|
+
/**
|
|
9126
|
+
* A container visually grouping components, like an embed: `@discordjs/structures`' `ContainerComponent`, with its
|
|
9127
|
+
* components like discord.js'.
|
|
9128
|
+
*/
|
|
9129
|
+
var ContainerComponent = class extends ContainerComponent$1 {
|
|
9130
|
+
/**
|
|
9131
|
+
* @param data The raw container.
|
|
9132
|
+
* @param relations The related structures, resolved from the cache.
|
|
9133
|
+
*/
|
|
9134
|
+
constructor(data, relations = {}) {
|
|
9135
|
+
super(data);
|
|
9136
|
+
initStructure(this, data, relations);
|
|
9137
|
+
}
|
|
9138
|
+
/**
|
|
9139
|
+
* The components in this container.
|
|
9140
|
+
*/
|
|
9141
|
+
get components() {
|
|
9142
|
+
return this[kData].components.map((component) => createComponent(component));
|
|
9143
|
+
}
|
|
9144
|
+
/**
|
|
9145
|
+
* The accent color of the container, `null` when it has none.
|
|
9146
|
+
*/
|
|
9147
|
+
get accentColor() {
|
|
9148
|
+
return this[kData].accent_color ?? null;
|
|
9149
|
+
}
|
|
9150
|
+
/**
|
|
9151
|
+
* The accent color as a `#rrggbb` string, `null` when the container has none.
|
|
9152
|
+
*/
|
|
9153
|
+
get hexAccentColor() {
|
|
9154
|
+
const { accentColor } = this;
|
|
9155
|
+
return accentColor === null ? null : `#${accentColor.toString(16).padStart(6, "0")}`;
|
|
9156
|
+
}
|
|
9157
|
+
/**
|
|
9158
|
+
* Whether the container is marked as a spoiler.
|
|
9159
|
+
*/
|
|
9160
|
+
get spoiler() {
|
|
9161
|
+
return this[kData].spoiler ?? false;
|
|
9162
|
+
}
|
|
9163
|
+
};
|
|
9164
|
+
Mixin(ContainerComponent, [StructureMixin, ComponentMixin]);
|
|
9165
|
+
|
|
9166
|
+
//#endregion
|
|
9167
|
+
//#region src/structures/components/UnfurledMediaItem.ts
|
|
9168
|
+
/**
|
|
9169
|
+
* A media item of a thumbnail, file, or media gallery component: `@discordjs/structures`' `UnfurledMediaItem`, like
|
|
9170
|
+
* discord.js'.
|
|
9171
|
+
*/
|
|
9172
|
+
var UnfurledMediaItem = class extends UnfurledMediaItem$1 {
|
|
9173
|
+
/**
|
|
9174
|
+
* @param data The raw media item.
|
|
9175
|
+
* @param relations The related structures, resolved from the cache.
|
|
9176
|
+
*/
|
|
9177
|
+
constructor(data, relations = {}) {
|
|
9178
|
+
super(data);
|
|
9179
|
+
initStructure(this, data, relations);
|
|
9180
|
+
}
|
|
9181
|
+
};
|
|
9182
|
+
Mixin(UnfurledMediaItem, [StructureMixin]);
|
|
9183
|
+
|
|
9184
|
+
//#endregion
|
|
9185
|
+
//#region src/structures/components/FileComponent.ts
|
|
9186
|
+
/**
|
|
9187
|
+
* An attached file: `@discordjs/structures`' `FileComponent`, with its media like discord.js'.
|
|
9188
|
+
*/
|
|
9189
|
+
var FileComponent = class extends FileComponent$1 {
|
|
9190
|
+
/**
|
|
9191
|
+
* @param data The raw file component.
|
|
9192
|
+
* @param relations The related structures, resolved from the cache.
|
|
9193
|
+
*/
|
|
9194
|
+
constructor(data, relations = {}) {
|
|
9195
|
+
super(data);
|
|
9196
|
+
initStructure(this, data, relations);
|
|
9197
|
+
}
|
|
9198
|
+
/**
|
|
9199
|
+
* The file, an `attachment://` reference to an attachment of the message.
|
|
9200
|
+
*/
|
|
9201
|
+
get file() {
|
|
9202
|
+
return new UnfurledMediaItem(this[kData].file);
|
|
9203
|
+
}
|
|
9204
|
+
/**
|
|
9205
|
+
* Whether the file is marked as a spoiler.
|
|
9206
|
+
*/
|
|
9207
|
+
get spoiler() {
|
|
9208
|
+
return this[kData].spoiler ?? false;
|
|
9209
|
+
}
|
|
9210
|
+
};
|
|
9211
|
+
Mixin(FileComponent, [StructureMixin, ComponentMixin]);
|
|
9212
|
+
|
|
9213
|
+
//#endregion
|
|
9214
|
+
//#region src/structures/components/FileUploadComponent.ts
|
|
9215
|
+
/**
|
|
9216
|
+
* A file upload field of a modal: `@discordjs/structures`' `FileUploadComponent`, like discord.js'.
|
|
9217
|
+
*/
|
|
9218
|
+
var FileUploadComponent = class extends FileUploadComponent$1 {
|
|
9219
|
+
/**
|
|
9220
|
+
* @param data The raw file upload.
|
|
9221
|
+
* @param relations The related structures, resolved from the cache.
|
|
9222
|
+
*/
|
|
9223
|
+
constructor(data, relations = {}) {
|
|
9224
|
+
super(data);
|
|
9225
|
+
initStructure(this, data, relations);
|
|
9226
|
+
}
|
|
9227
|
+
/**
|
|
9228
|
+
* The types of files that can be uploaded, any when empty.
|
|
9229
|
+
*/
|
|
9230
|
+
get fileTypes() {
|
|
9231
|
+
return this[kData].file_types ?? [];
|
|
9232
|
+
}
|
|
9233
|
+
};
|
|
9234
|
+
Mixin(FileUploadComponent, [StructureMixin, ComponentMixin]);
|
|
9235
|
+
|
|
9236
|
+
//#endregion
|
|
9237
|
+
//#region src/structures/components/InteractiveButtonComponent.ts
|
|
9238
|
+
/**
|
|
9239
|
+
* A button sending an interaction when clicked, of the `Primary`, `Secondary`, `Success`, or `Danger` style:
|
|
9240
|
+
* `@discordjs/structures`' `InteractiveButtonComponent`, with discord.js' `ButtonComponent` helpers.
|
|
9241
|
+
*/
|
|
9242
|
+
var InteractiveButtonComponent = class extends InteractiveButtonComponent$1 {
|
|
9243
|
+
/**
|
|
9244
|
+
* @param data The raw button.
|
|
9245
|
+
* @param relations The related structures, resolved from the cache.
|
|
9246
|
+
*/
|
|
9247
|
+
constructor(data, relations = {}) {
|
|
9248
|
+
super(data);
|
|
9249
|
+
initStructure(this, data, relations);
|
|
9250
|
+
}
|
|
9251
|
+
/**
|
|
9252
|
+
* Whether the button is disabled.
|
|
9253
|
+
*/
|
|
9254
|
+
get disabled() {
|
|
9255
|
+
return this[kData].disabled ?? false;
|
|
9256
|
+
}
|
|
9257
|
+
/**
|
|
9258
|
+
* The emoji on the button.
|
|
9259
|
+
*/
|
|
9260
|
+
get emoji() {
|
|
9261
|
+
return this[kData].emoji ?? null;
|
|
9262
|
+
}
|
|
9263
|
+
};
|
|
9264
|
+
Mixin(InteractiveButtonComponent, [StructureMixin, ComponentMixin]);
|
|
9265
|
+
|
|
9266
|
+
//#endregion
|
|
9267
|
+
//#region src/structures/components/LabelComponent.ts
|
|
9268
|
+
/**
|
|
9269
|
+
* A modal component associating a label and a description with another component, like discord.js' `LabelComponent`.
|
|
9270
|
+
*/
|
|
9271
|
+
var LabelComponent = class extends Component {
|
|
9272
|
+
/**
|
|
9273
|
+
* The label.
|
|
9274
|
+
*/
|
|
9275
|
+
get label() {
|
|
9276
|
+
return this[kData].label;
|
|
9277
|
+
}
|
|
9278
|
+
/**
|
|
9279
|
+
* The description of the label.
|
|
9280
|
+
*/
|
|
9281
|
+
get description() {
|
|
9282
|
+
return this[kData].description ?? null;
|
|
9283
|
+
}
|
|
9284
|
+
/**
|
|
9285
|
+
* The component the label is for.
|
|
9286
|
+
*/
|
|
9287
|
+
get component() {
|
|
9288
|
+
return createComponent(this[kData].component);
|
|
9289
|
+
}
|
|
9290
|
+
};
|
|
9291
|
+
|
|
9292
|
+
//#endregion
|
|
9293
|
+
//#region src/structures/components/LinkButtonComponent.ts
|
|
9294
|
+
/**
|
|
9295
|
+
* A button of the `Link` style, opening a URL: `@discordjs/structures`' `LinkButtonComponent`, with discord.js'
|
|
9296
|
+
* `ButtonComponent` helpers.
|
|
9297
|
+
*/
|
|
9298
|
+
var LinkButtonComponent = class extends LinkButtonComponent$1 {
|
|
9299
|
+
/**
|
|
9300
|
+
* @param data The raw button.
|
|
9301
|
+
* @param relations The related structures, resolved from the cache.
|
|
9302
|
+
*/
|
|
9303
|
+
constructor(data, relations = {}) {
|
|
9304
|
+
super(data);
|
|
9305
|
+
initStructure(this, data, relations);
|
|
9306
|
+
}
|
|
9307
|
+
/**
|
|
9308
|
+
* Whether the button is disabled.
|
|
9309
|
+
*/
|
|
9310
|
+
get disabled() {
|
|
9311
|
+
return this[kData].disabled ?? false;
|
|
9312
|
+
}
|
|
9313
|
+
/**
|
|
9314
|
+
* The emoji on the button.
|
|
9315
|
+
*/
|
|
9316
|
+
get emoji() {
|
|
9317
|
+
return this[kData].emoji ?? null;
|
|
9318
|
+
}
|
|
9319
|
+
};
|
|
9320
|
+
Mixin(LinkButtonComponent, [StructureMixin, ComponentMixin]);
|
|
9321
|
+
|
|
9322
|
+
//#endregion
|
|
9323
|
+
//#region src/structures/components/MediaGalleryItem.ts
|
|
9324
|
+
/**
|
|
9325
|
+
* An item of a media gallery component: `@discordjs/structures`' `MediaGalleryItem`, with its media like discord.js'.
|
|
9326
|
+
*/
|
|
9327
|
+
var MediaGalleryItem = class extends MediaGalleryItem$1 {
|
|
9328
|
+
/**
|
|
9329
|
+
* @param data The raw media gallery item.
|
|
9330
|
+
* @param relations The related structures, resolved from the cache.
|
|
9331
|
+
*/
|
|
9332
|
+
constructor(data, relations = {}) {
|
|
9333
|
+
super(data);
|
|
9334
|
+
initStructure(this, data, relations);
|
|
9335
|
+
}
|
|
9336
|
+
/**
|
|
9337
|
+
* The media of the item.
|
|
9338
|
+
*/
|
|
9339
|
+
get media() {
|
|
9340
|
+
return new UnfurledMediaItem(this[kData].media);
|
|
9341
|
+
}
|
|
9342
|
+
/**
|
|
9343
|
+
* The description of the item.
|
|
9344
|
+
*/
|
|
9345
|
+
get description() {
|
|
9346
|
+
return this[kData].description ?? void 0;
|
|
9347
|
+
}
|
|
9348
|
+
/**
|
|
9349
|
+
* Whether the item is marked as a spoiler.
|
|
9350
|
+
*/
|
|
9351
|
+
get spoiler() {
|
|
9352
|
+
return this[kData].spoiler ?? false;
|
|
9353
|
+
}
|
|
9354
|
+
};
|
|
9355
|
+
Mixin(MediaGalleryItem, [StructureMixin]);
|
|
9356
|
+
|
|
9357
|
+
//#endregion
|
|
9358
|
+
//#region src/structures/components/MediaGalleryComponent.ts
|
|
9359
|
+
/**
|
|
9360
|
+
* A gallery of images and videos: `@discordjs/structures`' `MediaGalleryComponent`, with its items like discord.js'.
|
|
9361
|
+
*/
|
|
9362
|
+
var MediaGalleryComponent = class extends MediaGalleryComponent$1 {
|
|
9363
|
+
/**
|
|
9364
|
+
* @param data The raw media gallery.
|
|
9365
|
+
* @param relations The related structures, resolved from the cache.
|
|
9366
|
+
*/
|
|
9367
|
+
constructor(data, relations = {}) {
|
|
9368
|
+
super(data);
|
|
9369
|
+
initStructure(this, data, relations);
|
|
9370
|
+
}
|
|
9371
|
+
/**
|
|
9372
|
+
* The items of the gallery.
|
|
9373
|
+
*/
|
|
9374
|
+
get items() {
|
|
9375
|
+
return this[kData].items.map((item) => new MediaGalleryItem(item));
|
|
9376
|
+
}
|
|
9377
|
+
};
|
|
9378
|
+
Mixin(MediaGalleryComponent, [StructureMixin, ComponentMixin]);
|
|
9379
|
+
|
|
9380
|
+
//#endregion
|
|
9381
|
+
//#region src/structures/components/MentionableSelectMenuComponent.ts
|
|
9382
|
+
/**
|
|
9383
|
+
* A select menu of users and roles: `@discordjs/structures`' `MentionableSelectMenuComponent`, like discord.js'.
|
|
9384
|
+
*/
|
|
9385
|
+
var MentionableSelectMenuComponent = class extends MentionableSelectMenuComponent$1 {
|
|
9386
|
+
/**
|
|
9387
|
+
* @param data The raw select menu.
|
|
9388
|
+
* @param relations The related structures, resolved from the cache.
|
|
9389
|
+
*/
|
|
9390
|
+
constructor(data, relations = {}) {
|
|
9391
|
+
super(data);
|
|
9392
|
+
initStructure(this, data, relations);
|
|
9393
|
+
}
|
|
9394
|
+
/**
|
|
9395
|
+
* Whether the select menu is disabled.
|
|
9396
|
+
*/
|
|
9397
|
+
get disabled() {
|
|
9398
|
+
return this[kData].disabled ?? false;
|
|
9399
|
+
}
|
|
9400
|
+
/**
|
|
9401
|
+
* The values selected by default.
|
|
9402
|
+
*/
|
|
9403
|
+
get defaultValues() {
|
|
9404
|
+
return this[kData].default_values ?? [];
|
|
9405
|
+
}
|
|
9406
|
+
};
|
|
9407
|
+
Mixin(MentionableSelectMenuComponent, [StructureMixin, ComponentMixin]);
|
|
9408
|
+
|
|
9409
|
+
//#endregion
|
|
9410
|
+
//#region src/structures/components/PremiumButtonComponent.ts
|
|
9411
|
+
/**
|
|
9412
|
+
* A button of the `Premium` style, purchasing a SKU: `@discordjs/structures`' `PremiumButtonComponent`.
|
|
9413
|
+
*/
|
|
9414
|
+
var PremiumButtonComponent = class extends PremiumButtonComponent$1 {
|
|
9415
|
+
/**
|
|
9416
|
+
* @param data The raw button.
|
|
9417
|
+
* @param relations The related structures, resolved from the cache.
|
|
9418
|
+
*/
|
|
9419
|
+
constructor(data, relations = {}) {
|
|
9420
|
+
super(data);
|
|
9421
|
+
initStructure(this, data, relations);
|
|
9422
|
+
}
|
|
9423
|
+
/**
|
|
9424
|
+
* Whether the button is disabled.
|
|
9425
|
+
*/
|
|
9426
|
+
get disabled() {
|
|
9427
|
+
return this[kData].disabled ?? false;
|
|
9428
|
+
}
|
|
9429
|
+
};
|
|
9430
|
+
Mixin(PremiumButtonComponent, [StructureMixin, ComponentMixin]);
|
|
9431
|
+
|
|
9432
|
+
//#endregion
|
|
9433
|
+
//#region src/structures/components/RadioGroupComponent.ts
|
|
9434
|
+
/**
|
|
9435
|
+
* A modal component to pick one of its options.
|
|
9436
|
+
*/
|
|
9437
|
+
var RadioGroupComponent = class extends Component {
|
|
9438
|
+
/**
|
|
9439
|
+
* The custom ID of the radio group.
|
|
9440
|
+
*/
|
|
9441
|
+
get customId() {
|
|
9442
|
+
return this[kData].custom_id;
|
|
9443
|
+
}
|
|
9444
|
+
/**
|
|
9445
|
+
* The options of the radio group.
|
|
9446
|
+
*/
|
|
9447
|
+
get options() {
|
|
9448
|
+
return this[kData].options;
|
|
9449
|
+
}
|
|
9450
|
+
/**
|
|
9451
|
+
* Whether picking an option is required to submit the modal, `true` by default.
|
|
9452
|
+
*/
|
|
9453
|
+
get required() {
|
|
9454
|
+
return this[kData].required ?? true;
|
|
9455
|
+
}
|
|
9456
|
+
};
|
|
9457
|
+
|
|
9458
|
+
//#endregion
|
|
9459
|
+
//#region src/structures/components/RoleSelectMenuComponent.ts
|
|
9460
|
+
/**
|
|
9461
|
+
* A select menu of roles: `@discordjs/structures`' `RoleSelectMenuComponent`, like discord.js'.
|
|
9462
|
+
*/
|
|
9463
|
+
var RoleSelectMenuComponent = class extends RoleSelectMenuComponent$1 {
|
|
9464
|
+
/**
|
|
9465
|
+
* @param data The raw select menu.
|
|
9466
|
+
* @param relations The related structures, resolved from the cache.
|
|
9467
|
+
*/
|
|
9468
|
+
constructor(data, relations = {}) {
|
|
9469
|
+
super(data);
|
|
9470
|
+
initStructure(this, data, relations);
|
|
9471
|
+
}
|
|
9472
|
+
/**
|
|
9473
|
+
* Whether the select menu is disabled.
|
|
9474
|
+
*/
|
|
9475
|
+
get disabled() {
|
|
9476
|
+
return this[kData].disabled ?? false;
|
|
9477
|
+
}
|
|
9478
|
+
/**
|
|
9479
|
+
* The values selected by default.
|
|
9480
|
+
*/
|
|
9481
|
+
get defaultValues() {
|
|
9482
|
+
return this[kData].default_values ?? [];
|
|
9483
|
+
}
|
|
9484
|
+
};
|
|
9485
|
+
Mixin(RoleSelectMenuComponent, [StructureMixin, ComponentMixin]);
|
|
9486
|
+
|
|
9487
|
+
//#endregion
|
|
9488
|
+
//#region src/structures/components/SectionComponent.ts
|
|
9489
|
+
/**
|
|
9490
|
+
* Text displayed alongside an accessory: `@discordjs/structures`' `SectionComponent`, with its components and accessory
|
|
9491
|
+
* like discord.js'.
|
|
9492
|
+
*/
|
|
9493
|
+
var SectionComponent = class extends SectionComponent$1 {
|
|
9494
|
+
/**
|
|
9495
|
+
* @param data The raw section.
|
|
9496
|
+
* @param relations The related structures, resolved from the cache.
|
|
9497
|
+
*/
|
|
9498
|
+
constructor(data, relations = {}) {
|
|
9499
|
+
super(data);
|
|
9500
|
+
initStructure(this, data, relations);
|
|
9501
|
+
}
|
|
9502
|
+
/**
|
|
9503
|
+
* The text components in this section.
|
|
9504
|
+
*/
|
|
9505
|
+
get components() {
|
|
9506
|
+
return this[kData].components.map((component) => createComponent(component));
|
|
9507
|
+
}
|
|
9508
|
+
/**
|
|
9509
|
+
* The button or thumbnail shown next to the section.
|
|
9510
|
+
*/
|
|
9511
|
+
get accessory() {
|
|
9512
|
+
return createComponent(this[kData].accessory);
|
|
9513
|
+
}
|
|
9514
|
+
};
|
|
9515
|
+
Mixin(SectionComponent, [StructureMixin, ComponentMixin]);
|
|
9516
|
+
|
|
9517
|
+
//#endregion
|
|
9518
|
+
//#region src/structures/components/SeparatorComponent.ts
|
|
9519
|
+
/**
|
|
9520
|
+
* Vertical padding between components: `@discordjs/structures`' `SeparatorComponent`, with Discord's defaults like
|
|
9521
|
+
* discord.js'.
|
|
9522
|
+
*/
|
|
9523
|
+
var SeparatorComponent = class extends SeparatorComponent$1 {
|
|
9524
|
+
/**
|
|
9525
|
+
* @param data The raw separator.
|
|
9526
|
+
* @param relations The related structures, resolved from the cache.
|
|
9527
|
+
*/
|
|
9528
|
+
constructor(data, relations = {}) {
|
|
9529
|
+
super(data);
|
|
9530
|
+
initStructure(this, data, relations);
|
|
9531
|
+
}
|
|
9532
|
+
/**
|
|
9533
|
+
* The size of the padding, `Small` by default.
|
|
9534
|
+
*/
|
|
9535
|
+
get spacing() {
|
|
9536
|
+
return this[kData].spacing ?? SeparatorSpacingSize.Small;
|
|
9537
|
+
}
|
|
9538
|
+
/**
|
|
9539
|
+
* Whether a divider line is shown, `true` by default.
|
|
9540
|
+
*/
|
|
9541
|
+
get divider() {
|
|
9542
|
+
return this[kData].divider ?? true;
|
|
9543
|
+
}
|
|
9544
|
+
};
|
|
9545
|
+
Mixin(SeparatorComponent, [StructureMixin, ComponentMixin]);
|
|
9546
|
+
|
|
9547
|
+
//#endregion
|
|
9548
|
+
//#region src/structures/components/StringSelectMenuComponent.ts
|
|
9549
|
+
/**
|
|
9550
|
+
* A select menu of predefined text options: `@discordjs/structures`' `StringSelectMenuComponent`, like discord.js'.
|
|
9551
|
+
*/
|
|
9552
|
+
var StringSelectMenuComponent = class extends StringSelectMenuComponent$1 {
|
|
9553
|
+
/**
|
|
9554
|
+
* @param data The raw select menu.
|
|
9555
|
+
* @param relations The related structures, resolved from the cache.
|
|
9556
|
+
*/
|
|
9557
|
+
constructor(data, relations = {}) {
|
|
9558
|
+
super(data);
|
|
9559
|
+
initStructure(this, data, relations);
|
|
9560
|
+
}
|
|
9561
|
+
/**
|
|
9562
|
+
* Whether the select menu is disabled.
|
|
9563
|
+
*/
|
|
9564
|
+
get disabled() {
|
|
9565
|
+
return this[kData].disabled ?? false;
|
|
9566
|
+
}
|
|
9567
|
+
/**
|
|
9568
|
+
* The options of the select menu.
|
|
9569
|
+
*/
|
|
9570
|
+
get options() {
|
|
9571
|
+
return this[kData].options;
|
|
9572
|
+
}
|
|
9573
|
+
};
|
|
9574
|
+
Mixin(StringSelectMenuComponent, [StructureMixin, ComponentMixin]);
|
|
9575
|
+
|
|
9576
|
+
//#endregion
|
|
9577
|
+
//#region src/structures/components/TextDisplayComponent.ts
|
|
9578
|
+
/**
|
|
9579
|
+
* Markdown text: `@discordjs/structures`' `TextDisplayComponent`, like discord.js'.
|
|
9580
|
+
*/
|
|
9581
|
+
var TextDisplayComponent = class extends TextDisplayComponent$1 {
|
|
9582
|
+
/**
|
|
9583
|
+
* @param data The raw text display.
|
|
9584
|
+
* @param relations The related structures, resolved from the cache.
|
|
9585
|
+
*/
|
|
9586
|
+
constructor(data, relations = {}) {
|
|
9587
|
+
super(data);
|
|
9588
|
+
initStructure(this, data, relations);
|
|
9589
|
+
}
|
|
9590
|
+
};
|
|
9591
|
+
Mixin(TextDisplayComponent, [StructureMixin, ComponentMixin]);
|
|
9592
|
+
|
|
9593
|
+
//#endregion
|
|
9594
|
+
//#region src/structures/components/TextInputComponent.ts
|
|
9595
|
+
/**
|
|
9596
|
+
* A text field of a modal: `@discordjs/structures`' `TextInputComponent`, like discord.js'.
|
|
9597
|
+
*/
|
|
9598
|
+
var TextInputComponent = class extends TextInputComponent$1 {
|
|
9599
|
+
/**
|
|
9600
|
+
* @param data The raw text input.
|
|
9601
|
+
* @param relations The related structures, resolved from the cache.
|
|
9602
|
+
*/
|
|
9603
|
+
constructor(data, relations = {}) {
|
|
9604
|
+
super(data);
|
|
9605
|
+
initStructure(this, data, relations);
|
|
9606
|
+
}
|
|
9607
|
+
};
|
|
9608
|
+
Mixin(TextInputComponent, [StructureMixin, ComponentMixin]);
|
|
9609
|
+
|
|
9610
|
+
//#endregion
|
|
9611
|
+
//#region src/structures/components/ThumbnailComponent.ts
|
|
9612
|
+
/**
|
|
9613
|
+
* A small image, used as the accessory of a section: `@discordjs/structures`' `ThumbnailComponent`, with its media like
|
|
9614
|
+
* discord.js'.
|
|
9615
|
+
*/
|
|
9616
|
+
var ThumbnailComponent = class extends ThumbnailComponent$1 {
|
|
9617
|
+
/**
|
|
9618
|
+
* @param data The raw thumbnail.
|
|
9619
|
+
* @param relations The related structures, resolved from the cache.
|
|
9620
|
+
*/
|
|
9621
|
+
constructor(data, relations = {}) {
|
|
9622
|
+
super(data);
|
|
9623
|
+
initStructure(this, data, relations);
|
|
9624
|
+
}
|
|
9625
|
+
/**
|
|
9626
|
+
* The media of the thumbnail.
|
|
9627
|
+
*/
|
|
9628
|
+
get media() {
|
|
9629
|
+
return new UnfurledMediaItem(this[kData].media);
|
|
9630
|
+
}
|
|
9631
|
+
/**
|
|
9632
|
+
* The description of the thumbnail.
|
|
9633
|
+
*/
|
|
9634
|
+
get description() {
|
|
9635
|
+
return this[kData].description ?? void 0;
|
|
9636
|
+
}
|
|
9637
|
+
/**
|
|
9638
|
+
* Whether the thumbnail is marked as a spoiler.
|
|
9639
|
+
*/
|
|
9640
|
+
get spoiler() {
|
|
9641
|
+
return this[kData].spoiler ?? false;
|
|
9642
|
+
}
|
|
9643
|
+
};
|
|
9644
|
+
Mixin(ThumbnailComponent, [StructureMixin, ComponentMixin]);
|
|
9645
|
+
|
|
9646
|
+
//#endregion
|
|
9647
|
+
//#region src/structures/components/UserSelectMenuComponent.ts
|
|
9648
|
+
/**
|
|
9649
|
+
* A select menu of users: `@discordjs/structures`' `UserSelectMenuComponent`, like discord.js'.
|
|
9650
|
+
*/
|
|
9651
|
+
var UserSelectMenuComponent = class extends UserSelectMenuComponent$1 {
|
|
9652
|
+
/**
|
|
9653
|
+
* @param data The raw select menu.
|
|
9654
|
+
* @param relations The related structures, resolved from the cache.
|
|
9655
|
+
*/
|
|
9656
|
+
constructor(data, relations = {}) {
|
|
9657
|
+
super(data);
|
|
9658
|
+
initStructure(this, data, relations);
|
|
9659
|
+
}
|
|
9660
|
+
/**
|
|
9661
|
+
* Whether the select menu is disabled.
|
|
9662
|
+
*/
|
|
9663
|
+
get disabled() {
|
|
9664
|
+
return this[kData].disabled ?? false;
|
|
9665
|
+
}
|
|
9666
|
+
/**
|
|
9667
|
+
* The values selected by default.
|
|
9668
|
+
*/
|
|
9669
|
+
get defaultValues() {
|
|
9670
|
+
return this[kData].default_values ?? [];
|
|
9671
|
+
}
|
|
9672
|
+
};
|
|
9673
|
+
Mixin(UserSelectMenuComponent, [StructureMixin, ComponentMixin]);
|
|
9674
|
+
|
|
9675
|
+
//#endregion
|
|
9676
|
+
//#region src/util/components.ts
|
|
9677
|
+
function createComponent(data) {
|
|
9678
|
+
if (data instanceof Component) return data;
|
|
9679
|
+
return buildComponent(data);
|
|
9680
|
+
}
|
|
9681
|
+
function buildComponent(data) {
|
|
9682
|
+
switch (data.type) {
|
|
9683
|
+
case ComponentType.ActionRow: return new ActionRow(data);
|
|
9684
|
+
case ComponentType.Button: switch (data.style) {
|
|
9685
|
+
case ButtonStyle.Link: return new LinkButtonComponent(data);
|
|
9686
|
+
case ButtonStyle.Premium: return new PremiumButtonComponent(data);
|
|
9687
|
+
default: return new InteractiveButtonComponent(data);
|
|
9688
|
+
}
|
|
9689
|
+
case ComponentType.StringSelect: return new StringSelectMenuComponent(data);
|
|
9690
|
+
case ComponentType.TextInput: return new TextInputComponent(data);
|
|
9691
|
+
case ComponentType.UserSelect: return new UserSelectMenuComponent(data);
|
|
9692
|
+
case ComponentType.RoleSelect: return new RoleSelectMenuComponent(data);
|
|
9693
|
+
case ComponentType.MentionableSelect: return new MentionableSelectMenuComponent(data);
|
|
9694
|
+
case ComponentType.ChannelSelect: return new ChannelSelectMenuComponent(data);
|
|
9695
|
+
case ComponentType.Section: return new SectionComponent(data);
|
|
9696
|
+
case ComponentType.TextDisplay: return new TextDisplayComponent(data);
|
|
9697
|
+
case ComponentType.Thumbnail: return new ThumbnailComponent(data);
|
|
9698
|
+
case ComponentType.MediaGallery: return new MediaGalleryComponent(data);
|
|
9699
|
+
case ComponentType.File: return new FileComponent(data);
|
|
9700
|
+
case ComponentType.Separator: return new SeparatorComponent(data);
|
|
9701
|
+
case ComponentType.Container: return new ContainerComponent(data);
|
|
9702
|
+
case ComponentType.Label: return new LabelComponent(data);
|
|
9703
|
+
case ComponentType.FileUpload: return new FileUploadComponent(data);
|
|
9704
|
+
case ComponentType.RadioGroup: return new RadioGroupComponent(data);
|
|
9705
|
+
case ComponentType.CheckboxGroup: return new CheckboxGroupComponent(data);
|
|
9706
|
+
case ComponentType.Checkbox: return new CheckboxComponent(data);
|
|
9707
|
+
default: return new Component(data);
|
|
9708
|
+
}
|
|
9709
|
+
}
|
|
9710
|
+
/**
|
|
9711
|
+
* Gets the components of a component tree that can have a custom ID: the children of action rows and labels, the
|
|
9712
|
+
* components and accessory of sections, recursively through containers.
|
|
9713
|
+
*
|
|
9714
|
+
* @param component The component, or raw component data.
|
|
9715
|
+
*/
|
|
9716
|
+
function extractInteractiveComponents(component) {
|
|
9717
|
+
const node = component;
|
|
9718
|
+
switch (node.type) {
|
|
9719
|
+
case ComponentType.ActionRow: return node.components;
|
|
9720
|
+
case ComponentType.Section: return [...node.components, node.accessory];
|
|
9721
|
+
case ComponentType.Container: return node.components.flatMap(extractInteractiveComponents);
|
|
9722
|
+
case ComponentType.Label: return [node.component];
|
|
9723
|
+
default: return [component];
|
|
9724
|
+
}
|
|
9725
|
+
}
|
|
9726
|
+
/**
|
|
9727
|
+
* Finds a component by its custom ID in a component tree, like discord.js' `findComponentByCustomId`.
|
|
9728
|
+
*
|
|
9729
|
+
* @param components The components, or raw component data, to search in, like a message's top-level components.
|
|
9730
|
+
* @param customId The custom ID.
|
|
9731
|
+
* @returns The component, as given, `null` when none has the custom ID.
|
|
9732
|
+
*/
|
|
9733
|
+
function findComponentByCustomId(components, customId) {
|
|
9734
|
+
return components.flatMap(extractInteractiveComponents).find((component) => {
|
|
9735
|
+
const node = component;
|
|
9736
|
+
return (component instanceof Component ? node.customId : node.custom_id) === customId;
|
|
9737
|
+
}) ?? null;
|
|
9738
|
+
}
|
|
9739
|
+
|
|
8962
9740
|
//#endregion
|
|
8963
9741
|
//#region src/structures/messages/Attachment.ts
|
|
8964
9742
|
/**
|
|
@@ -9507,10 +10285,11 @@ var Message = class Message extends Message$1 {
|
|
|
9507
10285
|
return (this[kData].embeds ?? []).map((embed) => new Embed(embed));
|
|
9508
10286
|
}
|
|
9509
10287
|
/**
|
|
9510
|
-
* The
|
|
10288
|
+
* The top-level components of the message, like discord.js'. Their `toJSON` returns the raw components; build new
|
|
10289
|
+
* ones with `@discordjs/builders`.
|
|
9511
10290
|
*/
|
|
9512
10291
|
get components() {
|
|
9513
|
-
return this[kData].components ?? [];
|
|
10292
|
+
return (this[kData].components ?? []).map((component) => createComponent(component));
|
|
9514
10293
|
}
|
|
9515
10294
|
/**
|
|
9516
10295
|
* The raw sticker items of the message; fetch a full sticker with `client.fetchSticker(id)`.
|
|
@@ -13302,5 +14081,5 @@ function RegisterAsGatewayListener(event, options = {}) {
|
|
|
13302
14081
|
}
|
|
13303
14082
|
|
|
13304
14083
|
//#endregion
|
|
13305
|
-
export { Action, ActionsManager, Activity, ActivityFlagsBitField, AnnouncementChannel, AnnouncementThreadChannel, AnonymousGuild, AppliedTagsMixin, Attachment, AttachmentFlagsBitField, AutoModerationActionExecution, AutoModerationRule, AutoModerationRuleManager, BaseChannel, BaseChannelMixin, BaseInvite, CachedManager as BaseManager, CachedManager, BitField, CategoryChannel, Channel, ChannelFlagsBitField, ChannelManager, ChannelMessageManager, ChannelOwnerMixin, ChannelParentMixin, ChannelPermissionMixin, ChannelSlowmodeMixin, ChannelThreadManager, ChannelThreadsMixin, ChannelTopicMixin, ChannelWebhooksMixin, ClientUser, DMChannel, DMChannelMixin, DispatchAction, DispatchHandlers, DispatchQueue, DispatchTimeoutError, Embed, Emoji, EventGatewayListener, ForumChannel, GatewayClient, GatewayError, GatewayErrorCodes, GatewayErrorMessages, GatewayEvents, GatewayRangeError, GatewaySessionStoreError, GatewayTypeError, GroupDMChannel, GroupDMInvite, GroupDMMixin, Guild, GuildAuditLogsEntry, GuildBan, GuildBanManager, GuildChannelFields, GuildChannelManager, GuildChannelMixin, GuildEmoji, GuildEmojiManager, GuildEmojiRoleManager, GuildIntegrationManager, GuildInvite, GuildInviteManager, GuildManager, GuildMember, GuildMemberFlagsBitField, GuildMemberManager, GuildMemberRoleManager, GuildMembersRateLimitError, GuildMembersTimeoutError, GuildOnboarding, GuildOnboardingPrompt, GuildOnboardingPromptOption, GuildPreview, GuildScheduledEvent, GuildScheduledEventManager, GuildSoundboardSoundManager, GuildStickerManager, GuildTemplate, GuildTemplateManager, Integration, IntentsBitField, InviteGuild, MediaChannel, Message, MessageFlagsBitField, MessageManager, MessageMentions, MessagePayload, MessageReaction, Mixin, MultiDispatchAction, MultiDispatchHandlers, NumberFlagsBitField, Partials, PermissionOverwriteManager, PermissionOverwrites, PermissionsBitField, Poll, PollAnswer, Presence, PresenceManager, PrivateThreadChannel, PublicThreadChannel, ReactionEmoji, ReactionManager, ReactionUserManager, RegisterAsGatewayListener, RichPresenceAssets, Role, RoleFlagsBitField, RoleManager, SoundboardSound, StageChannel, StageInstance, StageInstanceManager, Sticker, StickerPack, Structure, StructureMixin, SystemChannelFlagsBitField, TextChannel, TextChannelMixin, ThreadChannelMemberManager, ThreadChannelMixin, ThreadManager, ThreadMember, ThreadMemberManager, ThreadOnlyChannelMixin, Typing, User, UserFlagsBitField, UserManager, VoiceChannel, VoiceChannelMixin, VoiceState, VoiceStateManager, Webhook, WebhookManager, WebhookMixin, WelcomeScreen, Widget, WidgetMember, bindClient, compareRolePositions, computeChannelPermissions, computeGuildPermissions, computePermissionsIn, computeTargetPermissions, createChannel, createInvite, dispatchPartition, getGatewayClient, initStructure, isDeepEqual, isThreadChannelType, kClient, kClone, kData, kPatch, kPatchRelations, kRelations, resolveId, resolveOverwriteOptions, snowflakeTimestamp, toAPIOverwrite, toChannelBody };
|
|
14084
|
+
export { Action, ActionRow, ActionsManager, Activity, ActivityFlagsBitField, AnnouncementChannel, AnnouncementThreadChannel, AnonymousGuild, AppliedTagsMixin, Attachment, AttachmentFlagsBitField, AutoModerationActionExecution, AutoModerationRule, AutoModerationRuleManager, BaseChannel, BaseChannelMixin, BaseInvite, CachedManager as BaseManager, CachedManager, BitField, CategoryChannel, Channel, ChannelFlagsBitField, ChannelManager, ChannelMessageManager, ChannelOwnerMixin, ChannelParentMixin, ChannelPermissionMixin, ChannelSelectMenuComponent, ChannelSlowmodeMixin, ChannelThreadManager, ChannelThreadsMixin, ChannelTopicMixin, ChannelWebhooksMixin, CheckboxComponent, CheckboxGroupComponent, ClientUser, Component, ComponentMixin, ContainerComponent, DMChannel, DMChannelMixin, DispatchAction, DispatchHandlers, DispatchQueue, DispatchTimeoutError, Embed, Emoji, EventGatewayListener, FileComponent, FileUploadComponent, ForumChannel, GatewayClient, GatewayError, GatewayErrorCodes, GatewayErrorMessages, GatewayEvents, GatewayRangeError, GatewaySessionStoreError, GatewayTypeError, GroupDMChannel, GroupDMInvite, GroupDMMixin, Guild, GuildAuditLogsEntry, GuildBan, GuildBanManager, GuildChannelFields, GuildChannelManager, GuildChannelMixin, GuildEmoji, GuildEmojiManager, GuildEmojiRoleManager, GuildIntegrationManager, GuildInvite, GuildInviteManager, GuildManager, GuildMember, GuildMemberFlagsBitField, GuildMemberManager, GuildMemberRoleManager, GuildMembersRateLimitError, GuildMembersTimeoutError, GuildOnboarding, GuildOnboardingPrompt, GuildOnboardingPromptOption, GuildPreview, GuildScheduledEvent, GuildScheduledEventManager, GuildSoundboardSoundManager, GuildStickerManager, GuildTemplate, GuildTemplateManager, Integration, IntentsBitField, InteractiveButtonComponent, InviteGuild, LabelComponent, LinkButtonComponent, MediaChannel, MediaGalleryComponent, MediaGalleryItem, MentionableSelectMenuComponent, Message, MessageFlagsBitField, MessageManager, MessageMentions, MessagePayload, MessageReaction, Mixin, MultiDispatchAction, MultiDispatchHandlers, NumberFlagsBitField, Partials, PermissionOverwriteManager, PermissionOverwrites, PermissionsBitField, Poll, PollAnswer, PremiumButtonComponent, Presence, PresenceManager, PrivateThreadChannel, PublicThreadChannel, RadioGroupComponent, ReactionEmoji, ReactionManager, ReactionUserManager, RegisterAsGatewayListener, RichPresenceAssets, Role, RoleFlagsBitField, RoleManager, RoleSelectMenuComponent, SectionComponent, SeparatorComponent, SoundboardSound, StageChannel, StageInstance, StageInstanceManager, Sticker, StickerPack, StringSelectMenuComponent, Structure, StructureMixin, SystemChannelFlagsBitField, TextChannel, TextChannelMixin, TextDisplayComponent, TextInputComponent, ThreadChannelMemberManager, ThreadChannelMixin, ThreadManager, ThreadMember, ThreadMemberManager, ThreadOnlyChannelMixin, ThumbnailComponent, Typing, UnfurledMediaItem, User, UserFlagsBitField, UserManager, UserSelectMenuComponent, VoiceChannel, VoiceChannelMixin, VoiceState, VoiceStateManager, Webhook, WebhookManager, WebhookMixin, WelcomeScreen, Widget, WidgetMember, bindClient, compareRolePositions, computeChannelPermissions, computeGuildPermissions, computePermissionsIn, computeTargetPermissions, createChannel, createComponent, createInvite, dispatchPartition, findComponentByCustomId, getGatewayClient, initStructure, isDeepEqual, isThreadChannelType, kClient, kClone, kData, kPatch, kPatchRelations, kRelations, resolveId, resolveOverwriteOptions, snowflakeTimestamp, toAPIOverwrite, toChannelBody };
|
|
13306
14085
|
//# sourceMappingURL=index.js.map
|