Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/discord.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/discord.js/src/structures/LabelComponent.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/src/util/InviteFlagsBitField.js
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
20 changes: 16 additions & 4 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -2780,7 +2789,7 @@ export interface ModalComponentData {
components: readonly (
| JSONEncodable<APIActionRowComponent<APIComponentInModalActionRow> | APILabelComponent>
| ActionRowData<ModalActionRowComponentData>
| LabelData
| LabelComponentData
| TextDisplayComponentData
)[];
}
Expand Down Expand Up @@ -4143,7 +4152,7 @@ export class Formatters extends null {
export type ComponentData =
| MessageActionRowComponentData
| ModalActionRowComponentData
| LabelData
| LabelComponentData
| ComponentInLabelData
| ComponentInContainerData
| ContainerComponentData
Expand Down Expand Up @@ -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 };
27 changes: 16 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.