mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: oops
This commit is contained in:
parent
ff42213a13
commit
ac93b7d119
@ -8,7 +8,7 @@ export class PollBuilder {
|
||||
this.data.layout_type = PollLayoutType.Default;
|
||||
}
|
||||
|
||||
addAnswers(...answers: RestOrArray<APIPollMedia>) {
|
||||
addAnswers(...answers: RestOrArray<PollMedia>) {
|
||||
this.data.answers = (this.data.answers ?? []).concat(
|
||||
answers.flat().map(x => ({ poll_media: this.resolvedPollMedia(x) })),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user