mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
build: bump dependencies (#10671)
This commit is contained in:
@@ -7,7 +7,7 @@ import { ComponentBuilder } from '../Component.js';
|
||||
* A builder that creates API-compatible JSON data for buttons.
|
||||
*/
|
||||
export abstract class BaseButtonBuilder<ButtonData extends APIButtonComponent> extends ComponentBuilder<ButtonData> {
|
||||
protected declare readonly data: Partial<ButtonData>;
|
||||
declare protected readonly data: Partial<ButtonData>;
|
||||
|
||||
/**
|
||||
* Sets whether this button is disabled.
|
||||
|
||||
@@ -4,7 +4,7 @@ export interface EmojiOrLabelButtonData
|
||||
extends Pick<Exclude<APIButtonComponent, APIButtonComponentWithSKUId>, 'emoji' | 'label'> {}
|
||||
|
||||
export class EmojiOrLabelButtonMixin {
|
||||
protected declare readonly data: EmojiOrLabelButtonData;
|
||||
declare protected readonly data: EmojiOrLabelButtonData;
|
||||
|
||||
/**
|
||||
* Sets the emoji to display on this button.
|
||||
|
||||
@@ -19,7 +19,7 @@ export interface CommandData
|
||||
export abstract class CommandBuilder<Command extends RESTPostAPIApplicationCommandsJSONBody>
|
||||
implements JSONEncodable<Command>
|
||||
{
|
||||
protected declare readonly data: CommandData;
|
||||
declare protected readonly data: CommandData;
|
||||
|
||||
/**
|
||||
* Sets the contexts of this command.
|
||||
|
||||
@@ -26,7 +26,7 @@ export class ChatInputCommandSubcommandGroupBuilder
|
||||
extends SharedNameAndDescription
|
||||
implements JSONEncodable<APIApplicationCommandSubcommandGroupOption>
|
||||
{
|
||||
protected declare readonly data: ChatInputCommandSubcommandGroupData & SharedNameAndDescriptionData;
|
||||
declare protected readonly data: ChatInputCommandSubcommandGroupData & SharedNameAndDescriptionData;
|
||||
|
||||
public get options(): readonly ChatInputCommandSubcommandBuilder[] {
|
||||
return (this.data.options ??= []);
|
||||
|
||||
@@ -7,7 +7,7 @@ export interface ApplicationCommandNumericOptionMinMaxValueData
|
||||
* This mixin holds minimum and maximum symbols used for options.
|
||||
*/
|
||||
export abstract class ApplicationCommandNumericOptionMinMaxValueMixin {
|
||||
protected declare readonly data: ApplicationCommandNumericOptionMinMaxValueData;
|
||||
declare protected readonly data: ApplicationCommandNumericOptionMinMaxValueData;
|
||||
|
||||
/**
|
||||
* Sets the maximum number value of this option.
|
||||
|
||||
@@ -26,7 +26,7 @@ export interface ApplicationCommandOptionChannelTypesData
|
||||
* This mixin holds channel type symbols used for options.
|
||||
*/
|
||||
export class ApplicationCommandOptionChannelTypesMixin {
|
||||
protected declare readonly data: ApplicationCommandOptionChannelTypesData;
|
||||
declare protected readonly data: ApplicationCommandOptionChannelTypesData;
|
||||
|
||||
/**
|
||||
* Adds channel types to this option.
|
||||
|
||||
@@ -15,7 +15,7 @@ export interface ApplicationCommandOptionWithAutocompleteData extends Pick<Autoc
|
||||
* This mixin holds choices and autocomplete symbols used for options.
|
||||
*/
|
||||
export class ApplicationCommandOptionWithAutocompleteMixin {
|
||||
protected declare readonly data: ApplicationCommandOptionWithAutocompleteData;
|
||||
declare protected readonly data: ApplicationCommandOptionWithAutocompleteData;
|
||||
|
||||
/**
|
||||
* Whether this option uses autocomplete.
|
||||
|
||||
@@ -10,7 +10,7 @@ export interface ApplicationCommandOptionWithChoicesData {
|
||||
* This mixin holds choices and autocomplete symbols used for options.
|
||||
*/
|
||||
export class ApplicationCommandOptionWithChoicesMixin<ChoiceType extends number | string> {
|
||||
protected declare readonly data: ApplicationCommandOptionWithChoicesData;
|
||||
declare protected readonly data: ApplicationCommandOptionWithChoicesData;
|
||||
|
||||
/**
|
||||
* Adds multiple choices to this option.
|
||||
|
||||
@@ -21,7 +21,7 @@ export interface SharedChatInputCommandOptionsData {
|
||||
* @typeParam TypeAfterAddingOptions - The type this class should return after adding an option.
|
||||
*/
|
||||
export class SharedChatInputCommandOptions {
|
||||
protected declare readonly data: SharedChatInputCommandOptionsData;
|
||||
declare protected readonly data: SharedChatInputCommandOptionsData;
|
||||
|
||||
public get options(): readonly ApplicationCommandOptionBase[] {
|
||||
return (this.data.options ??= []);
|
||||
|
||||
@@ -16,7 +16,7 @@ export interface SharedChatInputCommandSubcommandsData {
|
||||
* @typeParam TypeAfterAddingSubcommands - The type this class should return after adding a subcommand or subcommand group.
|
||||
*/
|
||||
export class SharedChatInputCommandSubcommands {
|
||||
protected declare readonly data: SharedChatInputCommandSubcommandsData;
|
||||
declare protected readonly data: SharedChatInputCommandSubcommandsData;
|
||||
|
||||
/**
|
||||
* Adds subcommand groups to this command.
|
||||
|
||||
@@ -23,7 +23,7 @@ export abstract class ApplicationCommandOptionBase
|
||||
{
|
||||
protected static readonly predicate: z.ZodTypeAny = basicOptionPredicate;
|
||||
|
||||
protected declare readonly data: ApplicationCommandOptionBaseData & SharedNameAndDescriptionData;
|
||||
declare protected readonly data: ApplicationCommandOptionBaseData & SharedNameAndDescriptionData;
|
||||
|
||||
public constructor(type: ApplicationCommandOptionType) {
|
||||
super();
|
||||
|
||||
@@ -18,7 +18,7 @@ export class ChatInputCommandStringOption extends Mixin(
|
||||
) {
|
||||
protected static override readonly predicate = stringOptionPredicate;
|
||||
|
||||
protected declare readonly data: ApplicationCommandOptionBaseData &
|
||||
declare protected readonly data: ApplicationCommandOptionBaseData &
|
||||
ApplicationCommandOptionWithAutocompleteData &
|
||||
ApplicationCommandOptionWithChoicesData &
|
||||
Partial<Pick<APIApplicationCommandStringOption, 'max_length' | 'min_length'>>;
|
||||
|
||||
Reference in New Issue
Block a user