mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +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<
|
||||
ComponentType extends AnyComponentBuilder = AnyComponentBuilder,
|
||||
> extends BuilderActionRow<ComponentType> {
|
||||
constructor(
|
||||
public constructor(
|
||||
data?: Partial<
|
||||
| ActionRowData<ActionRowComponentData | JSONEncodable<APIActionRowComponentTypes>>
|
||||
| APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>
|
||||
@@ -2396,7 +2396,7 @@ export interface ActionRowModalData {
|
||||
}
|
||||
|
||||
export class ModalSubmitFields {
|
||||
constructor(components: readonly (readonly ModalActionRowComponent[])[]);
|
||||
private constructor(components: readonly (readonly ModalActionRowComponent[])[]);
|
||||
public components: ActionRowModalData[];
|
||||
public fields: Collection<string, ModalActionRowComponent>;
|
||||
public getField<Type extends ComponentType>(customId: string, type: Type): { type: Type } & TextInputModalData;
|
||||
|
||||
Reference in New Issue
Block a user