mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
types: allow component classes in action row data (#7614)
* types: allow component classes in action row data * types: allow components to be passed inside objects in messages Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
This commit is contained in:
6
packages/discord.js/typings/index.d.ts
vendored
6
packages/discord.js/typings/index.d.ts
vendored
@@ -225,7 +225,7 @@ export class ActionRow<
|
|||||||
> extends BuilderActionRow<T> {
|
> extends BuilderActionRow<T> {
|
||||||
constructor(
|
constructor(
|
||||||
data?:
|
data?:
|
||||||
| ActionRowData<MessageActionRowComponentData | ModalActionRowComponentData>
|
| ActionRowData<MessageActionRowComponentData | ModalActionRowComponentData | ActionRowComponent>
|
||||||
| (Omit<APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>, 'type'> & {
|
| (Omit<APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>, 'type'> & {
|
||||||
type?: ComponentType.ActionRow;
|
type?: ComponentType.ActionRow;
|
||||||
}),
|
}),
|
||||||
@@ -4667,7 +4667,7 @@ export interface MessageEditOptions {
|
|||||||
allowedMentions?: MessageMentionOptions;
|
allowedMentions?: MessageMentionOptions;
|
||||||
components?: (
|
components?: (
|
||||||
| ActionRow<MessageActionRowComponent>
|
| ActionRow<MessageActionRowComponent>
|
||||||
| (Required<BaseComponentData> & ActionRowData<MessageActionRowComponentData>)
|
| (Required<BaseComponentData> & ActionRowData<MessageActionRowComponentData | MessageActionRowComponent>)
|
||||||
| APIActionRowComponent<APIMessageActionRowComponent>
|
| APIActionRowComponent<APIMessageActionRowComponent>
|
||||||
)[];
|
)[];
|
||||||
}
|
}
|
||||||
@@ -4708,7 +4708,7 @@ export interface MessageOptions {
|
|||||||
embeds?: (Embed | APIEmbed)[];
|
embeds?: (Embed | APIEmbed)[];
|
||||||
components?: (
|
components?: (
|
||||||
| ActionRow<MessageActionRowComponent>
|
| ActionRow<MessageActionRowComponent>
|
||||||
| (Required<BaseComponentData> & ActionRowData<MessageActionRowComponentData>)
|
| (Required<BaseComponentData> & ActionRowData<MessageActionRowComponentData | MessageActionRowComponent>)
|
||||||
| APIActionRowComponent<APIMessageActionRowComponent>
|
| APIActionRowComponent<APIMessageActionRowComponent>
|
||||||
)[];
|
)[];
|
||||||
allowedMentions?: MessageMentionOptions;
|
allowedMentions?: MessageMentionOptions;
|
||||||
|
|||||||
Reference in New Issue
Block a user