mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 13:33:30 +01:00
types: Update accessibility modifiers on constructors (#10147)
types: update accessibility modifiers on constructors
This commit is contained in:
4
packages/discord.js/typings/index.d.ts
vendored
4
packages/discord.js/typings/index.d.ts
vendored
@@ -311,7 +311,7 @@ export interface ActionRowData<ComponentType extends JSONEncodable<APIActionRowC
|
|||||||
export class ActionRowBuilder<
|
export class ActionRowBuilder<
|
||||||
ComponentType extends AnyComponentBuilder = AnyComponentBuilder,
|
ComponentType extends AnyComponentBuilder = AnyComponentBuilder,
|
||||||
> extends BuilderActionRow<ComponentType> {
|
> extends BuilderActionRow<ComponentType> {
|
||||||
constructor(
|
public constructor(
|
||||||
data?: Partial<
|
data?: Partial<
|
||||||
| ActionRowData<ActionRowComponentData | JSONEncodable<APIActionRowComponentTypes>>
|
| ActionRowData<ActionRowComponentData | JSONEncodable<APIActionRowComponentTypes>>
|
||||||
| APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>
|
| APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>
|
||||||
@@ -2396,7 +2396,7 @@ export interface ActionRowModalData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class ModalSubmitFields {
|
export class ModalSubmitFields {
|
||||||
constructor(components: readonly (readonly ModalActionRowComponent[])[]);
|
private constructor(components: readonly (readonly ModalActionRowComponent[])[]);
|
||||||
public components: ActionRowModalData[];
|
public components: ActionRowModalData[];
|
||||||
public fields: Collection<string, ModalActionRowComponent>;
|
public fields: Collection<string, ModalActionRowComponent>;
|
||||||
public getField<Type extends ComponentType>(customId: string, type: Type): { type: Type } & TextInputModalData;
|
public getField<Type extends ComponentType>(customId: string, type: Type): { type: Type } & TextInputModalData;
|
||||||
|
|||||||
Reference in New Issue
Block a user