build: bump dependencies (#10671)

This commit is contained in:
Almeida
2024-12-31 20:31:34 +00:00
committed by GitHub
parent b854c7b979
commit a6685a319e
50 changed files with 6454 additions and 6907 deletions

View File

@@ -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.

View File

@@ -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 ??= []);

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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 ??= []);

View File

@@ -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.

View File

@@ -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();

View File

@@ -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'>>;