mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 22:16:08 +00:00
fix(helpers): error action row constructor
This commit is contained in:
parent
5569d23edd
commit
d6ebe07ee7
@ -3,7 +3,7 @@ import { MessageComponents, createComponent } from "../Utils";
|
|||||||
import { BaseComponent } from "./BaseComponent";
|
import { BaseComponent } from "./BaseComponent";
|
||||||
|
|
||||||
export class MessageActionRow<T extends MessageComponents> extends BaseComponent<APIActionRowComponent<APIMessageActionRowComponent>> {
|
export class MessageActionRow<T extends MessageComponents> extends BaseComponent<APIActionRowComponent<APIMessageActionRowComponent>> {
|
||||||
constructor({ components, ...data }: Partial<APIActionRowComponent<APIMessageActionRowComponent>>) {
|
constructor({ components, ...data }: Partial<APIActionRowComponent<APIMessageActionRowComponent>> = {}) {
|
||||||
super({ ...data, type: ComponentType.ActionRow });
|
super({ ...data, type: ComponentType.ActionRow });
|
||||||
this.components = (components?.map(createComponent) ?? []) as T[];
|
this.components = (components?.map(createComponent) ?? []) as T[];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user