build: Bump dependencies (#11333)

* build: bump dependencies

* fix: guide build

* build: amend package.json.hbs

* build: create-discord-bot

* style: formatting

* build: final change

---------

Co-authored-by: almeidx <github@almeidx.dev>
This commit is contained in:
Jiralite
2025-12-06 22:55:07 +00:00
committed by GitHub
parent 0aaba0305f
commit 5e6bd4b3d7
83 changed files with 6148 additions and 5493 deletions

View File

@@ -34,8 +34,9 @@ import { StringSelectMenuBuilder } from './selectMenu/StringSelectMenu.js';
import { UserSelectMenuBuilder } from './selectMenu/UserSelectMenu.js';
import { TextInputBuilder } from './textInput/TextInput.js';
export interface ActionRowBuilderData
extends Partial<Omit<APIActionRowComponent<APIComponentInActionRow>, 'components'>> {
export interface ActionRowBuilderData extends Partial<
Omit<APIActionRowComponent<APIComponentInActionRow>, 'components'>
> {
components: AnyActionRowComponentBuilder[];
}

View File

@@ -10,9 +10,9 @@ export interface ComponentBuilderBaseData {
*
* @typeParam Component - The type of API data that is stored within the builder
*/
export abstract class ComponentBuilder<Component extends APIBaseComponent<ComponentType>>
implements JSONEncodable<Component>
{
export abstract class ComponentBuilder<
Component extends APIBaseComponent<ComponentType>,
> implements JSONEncodable<Component> {
/**
* @internal
*/

View File

@@ -1,7 +1,9 @@
import type { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji } from 'discord-api-types/v10';
export interface EmojiOrLabelButtonData
extends Pick<Exclude<APIButtonComponent, APIButtonComponentWithSKUId>, 'emoji' | 'label'> {}
export interface EmojiOrLabelButtonData extends Pick<
Exclude<APIButtonComponent, APIButtonComponentWithSKUId>,
'emoji' | 'label'
> {}
/**
* A mixin that adds emoji and label symbols to a button builder.

View File

@@ -8,20 +8,16 @@ import type {
import type { RestOrArray } from '../../util/normalizeArray.js';
import { normalizeArray } from '../../util/normalizeArray.js';
export interface CommandData
extends Partial<
Pick<
RESTPostAPIApplicationCommandsJSONBody,
'contexts' | 'default_member_permissions' | 'integration_types' | 'nsfw'
>
> {}
export interface CommandData extends Partial<
Pick<RESTPostAPIApplicationCommandsJSONBody, 'contexts' | 'default_member_permissions' | 'integration_types' | 'nsfw'>
> {}
/**
* The base class for all command builders.
*/
export abstract class CommandBuilder<Command extends RESTPostAPIApplicationCommandsJSONBody>
implements JSONEncodable<Command>
{
export abstract class CommandBuilder<
Command extends RESTPostAPIApplicationCommandsJSONBody,
> implements JSONEncodable<Command> {
/**
* The API data associated with this command.
*

View File

@@ -1,7 +1,8 @@
import type { Locale, RESTPostAPIApplicationCommandsJSONBody } from 'discord-api-types/v10';
export interface SharedNameData
extends Partial<Pick<RESTPostAPIApplicationCommandsJSONBody, 'name_localizations' | 'name'>> {}
export interface SharedNameData extends Partial<
Pick<RESTPostAPIApplicationCommandsJSONBody, 'name_localizations' | 'name'>
> {}
/**
* This mixin holds name and description symbols for chat input commands.

View File

@@ -3,8 +3,7 @@ import type { SharedNameData } from './SharedName.js';
import { SharedName } from './SharedName.js';
export interface SharedNameAndDescriptionData
extends SharedNameData,
Partial<Pick<APIApplicationCommand, 'description_localizations' | 'description'>> {}
extends SharedNameData, Partial<Pick<APIApplicationCommand, 'description_localizations' | 'description'>> {}
/**
* This mixin holds name and description symbols for chat input commands.

View File

@@ -1,7 +1,9 @@
import type { APIApplicationCommandIntegerOption } from 'discord-api-types/v10';
export interface ApplicationCommandNumericOptionMinMaxValueData
extends Pick<APIApplicationCommandIntegerOption, 'max_value' | 'min_value'> {}
export interface ApplicationCommandNumericOptionMinMaxValueData extends Pick<
APIApplicationCommandIntegerOption,
'max_value' | 'min_value'
> {}
/**
* This mixin holds minimum and maximum symbols used for options.

View File

@@ -19,8 +19,10 @@ export const ApplicationCommandOptionAllowedChannelTypes = [
*/
export type ApplicationCommandOptionAllowedChannelType = (typeof ApplicationCommandOptionAllowedChannelTypes)[number];
export interface ApplicationCommandOptionChannelTypesData
extends Pick<APIApplicationCommandChannelOption, 'channel_types'> {}
export interface ApplicationCommandOptionChannelTypesData extends Pick<
APIApplicationCommandChannelOption,
'channel_types'
> {}
/**
* This mixin holds channel type symbols used for options.

View File

@@ -38,13 +38,12 @@ import { MessageReferenceBuilder } from './MessageReference.js';
import { EmbedBuilder } from './embed/Embed.js';
import { PollBuilder } from './poll/Poll.js';
export interface MessageBuilderData
extends Partial<
Omit<
RESTPostAPIChannelMessageJSONBody,
'allowed_mentions' | 'attachments' | 'components' | 'embeds' | 'message_reference' | 'poll'
>
> {
export interface MessageBuilderData extends Partial<
Omit<
RESTPostAPIChannelMessageJSONBody,
'allowed_mentions' | 'attachments' | 'components' | 'embeds' | 'message_reference' | 'poll'
>
> {
allowed_mentions?: AllowedMentionsBuilder;
attachments: AttachmentBuilder[];
components: MessageTopLevelComponentBuilder[];