mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
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:
@@ -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[];
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user