mirror of
https://github.com/discordjs/discord.js.git
synced 2024-07-16 02:27:36 +12:00
types: Update accessibility modifiers on constructors (#10147)
types: update accessibility modifiers on constructors
This commit is contained in:
parent
bfbd62e3e0
commit
efa3cac6f2
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;
|
||||
|
|
Loading…
Reference in a new issue