Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
imranbarbhuiya committed Feb 19, 2022
1 parent dd8e151 commit 384cf9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PaginationEmbed.ts
Expand Up @@ -855,7 +855,7 @@ export class PaginationEmbed extends MessageEmbed {
this.buttons.first?.setDisabled(true);
this.buttons.prev?.setDisabled(true);
}
this.mainActionRow.setComponents(...this.buttons);
this.mainActionRow.setComponents(Object.values(this.buttons));
this.actionRows = [this.mainActionRow];
if (this.extraRows.length > 0) {
this.extraRows.forEach((row) => {
Expand Down

0 comments on commit 384cf9d

Please sign in to comment.