Skip to content

Commit

Permalink
fix: prevdescription
Browse files Browse the repository at this point in the history
  • Loading branch information
imranbarbhuiya committed Jan 19, 2022
1 parent 6202890 commit 95e63a4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/PaginationEmbed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -908,13 +908,13 @@ export class PaginationEmbed extends MessageEmbed {
}
if (this.descriptions.length) {
this.setDescription(
`${this.prevDescription}\n
${this.descriptions
.slice(
pageNumber * this.limit - this.limit,
pageNumber * this.limit
)
.join("\n")}\n${this.postDescription}`
`${this.prevDescription}\n` +
`${this.descriptions
.slice(
pageNumber * this.limit - this.limit,
pageNumber * this.limit
)
.join("\n")}\n${this.postDescription}`
);
}

Expand Down

0 comments on commit 95e63a4

Please # to comment.