mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-20 23:34:48 +12:00
types: Update accessibility modifiers on constructors (#10147)
types: update accessibility modifiers on constructors
This commit is contained in:
parent
bfbd62e3e0
commit
efa3cac6f2
1 changed files with 2 additions and 2 deletions
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;
|
||||||
|
|
Loading…
Reference in a new issue