mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
feat: bump builders in v14 (and fix runtime crashes) (#11153)
* feat: bump builders in v14 (and fix runtime crashes) * chore: bump dtypes * Update packages/discord.js/src/structures/LabelBuilder.js Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> * chore: requested changes * chore: lint --------- Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
@@ -66,14 +66,14 @@
|
||||
"homepage": "https://discord.js.org",
|
||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||
"dependencies": {
|
||||
"@discordjs/builders": "^1.11.2",
|
||||
"@discordjs/builders": "^1.12.0",
|
||||
"@discordjs/collection": "1.5.3",
|
||||
"@discordjs/formatters": "^0.6.1",
|
||||
"@discordjs/rest": "workspace:^",
|
||||
"@discordjs/util": "workspace:^",
|
||||
"@discordjs/ws": "^1.2.3",
|
||||
"@sapphire/snowflake": "3.5.3",
|
||||
"discord-api-types": "^0.38.24",
|
||||
"discord-api-types": "^0.38.29",
|
||||
"fast-deep-equal": "3.1.3",
|
||||
"lodash.snakecase": "4.1.1",
|
||||
"magic-bytes.js": "^1.10.0",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
const { Component } = require('./Component.js');
|
||||
const { createComponent } = require('../util/Components.js');
|
||||
const Component = require('./Component');
|
||||
const { createComponent } = require('../util/Components');
|
||||
|
||||
/**
|
||||
* Represents a label component
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
const { InviteFlags } = require('discord-api-types/v10');
|
||||
const { BitField } = require('./BitField.js');
|
||||
const BitField = require('./BitField');
|
||||
|
||||
/**
|
||||
* Data structure that makes it easy to interact with a {@link GuildInvite#flags} bit field.
|
||||
|
||||
20
packages/discord.js/typings/index.d.ts
vendored
20
packages/discord.js/typings/index.d.ts
vendored
@@ -37,7 +37,15 @@ import {
|
||||
} from '@discordjs/formatters';
|
||||
import { Awaitable, JSONEncodable } from '@discordjs/util';
|
||||
import { Collection, ReadonlyCollection } from '@discordjs/collection';
|
||||
import { BaseImageURLOptions, EmojiURLOptions, ImageURLOptions, RawFile, REST, RESTOptions } from '@discordjs/rest';
|
||||
import {
|
||||
BaseImageURLOptions,
|
||||
EmojiURLOptions,
|
||||
ImageURLOptions,
|
||||
RawFile,
|
||||
REST,
|
||||
RESTOptions,
|
||||
ImageSize,
|
||||
} from '@discordjs/rest';
|
||||
import {
|
||||
WebSocketManager as WSWebSocketManager,
|
||||
IShardingStrategy,
|
||||
@@ -361,7 +369,8 @@ export type ComponentInLabelData =
|
||||
| RoleSelectMenuComponentData
|
||||
| MentionableSelectMenuComponentData;
|
||||
|
||||
export interface LabelData extends BaseComponentData {
|
||||
export interface LabelComponentData extends BaseComponentData {
|
||||
type: ComponentType.Label;
|
||||
component: ComponentInLabelData;
|
||||
description?: string;
|
||||
label: string;
|
||||
@@ -2780,7 +2789,7 @@ export interface ModalComponentData {
|
||||
components: readonly (
|
||||
| JSONEncodable<APIActionRowComponent<APIComponentInModalActionRow> | APILabelComponent>
|
||||
| ActionRowData<ModalActionRowComponentData>
|
||||
| LabelData
|
||||
| LabelComponentData
|
||||
| TextDisplayComponentData
|
||||
)[];
|
||||
}
|
||||
@@ -4143,7 +4152,7 @@ export class Formatters extends null {
|
||||
export type ComponentData =
|
||||
| MessageActionRowComponentData
|
||||
| ModalActionRowComponentData
|
||||
| LabelData
|
||||
| LabelComponentData
|
||||
| ComponentInLabelData
|
||||
| ComponentInContainerData
|
||||
| ContainerComponentData
|
||||
@@ -8003,3 +8012,6 @@ export * from '@discordjs/formatters';
|
||||
export * from '@discordjs/rest';
|
||||
export * from '@discordjs/util';
|
||||
export * from '@discordjs/ws';
|
||||
|
||||
// Solve TS compile error
|
||||
export type { ImageSize };
|
||||
|
||||
Reference in New Issue
Block a user