Skip to content

Commit

Permalink
fix(PaginatedMessage): allow overwriting SelectMenu options (#298)
Browse files Browse the repository at this point in the history
woops? fixes #297
  • Loading branch information
favna committed Feb 18, 2022
1 parent b6799a7 commit 10f3c25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,6 @@ export class PaginatedMessage {
return isMessageButtonInteraction(interaction)
? new MessageButton(interaction)
: new MessageSelectMenu({
...interaction,
options: await Promise.all(
this.pages.map(async (_, index) => ({
...(await this.selectMenuOptions(index + 1, {
Expand All @@ -990,7 +989,8 @@ export class PaginatedMessage {
})),
value: index.toString()
}))
)
),
...interaction
});
})
);
Expand Down

0 comments on commit 10f3c25

Please sign in to comment.