mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user