Skip to content

Commit

Permalink
types: fix regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
ImRodry committed Mar 13, 2022
1 parent 549716e commit 84804e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/builders/src/components/ActionRow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class ActionRowBuilder<
/**
* The components within this action row
*/
private readonly components: T[];
public readonly components: T[];

public constructor({
components,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class UnsafeSelectMenuBuilder extends ComponentBuilder<
/**
* The options within this select menu
*/
protected readonly options: UnsafeSelectMenuOptionBuilder[];
public readonly options: UnsafeSelectMenuOptionBuilder[];

public constructor(data?: Partial<APISelectMenuComponent>) {
const { options, ...initData } = data ?? {};
Expand Down
6 changes: 3 additions & 3 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ export class ActionRowBuilder<
);
}

export type MessageActionRowComponent = ButtonComponent | SelectMenuComponent;
export type ModalActionRowComponent = TextInputComponent;
export type MessageActionRowComponent = ButtonBuilder | SelectMenuBuilder;
export type ModalActionRowComponent = TextInputBuilder;

export class ActionRow<T extends MessageActionRowComponent | ModalActionRowComponent> {
private constructor(data: APIActionRowComponent<APIMessageActionRowComponent>);
Expand Down Expand Up @@ -4733,7 +4733,7 @@ export type MessageChannelComponentCollectorOptions<T extends MessageComponentIn
export interface MessageEditOptions {
attachments?: MessageAttachment[];
content?: string | null;
embeds?: (Embed | APIEmbed)[] | null;
embeds?: (JSONEncodable<APIEmbed> | APIEmbed)[] | null;
files?: (FileOptions | BufferResolvable | Stream | MessageAttachment)[];
flags?: BitFieldResolvable<MessageFlagsString, number>;
allowedMentions?: MessageMentionOptions;
Expand Down

0 comments on commit 84804e6

Please sign in to comment.