Skip to content

Commit

Permalink
Update MessagePagination.js
Browse files Browse the repository at this point in the history
  • Loading branch information
acegoal07 committed Aug 15, 2023
1 parent 3ac3b50 commit 8050c84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/MessagePagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ exports.MessagePagination = async(paginationInfo, options) => {
const paginationContent = options.imageList ?
{
files: [paginationInfo.imageList[pageNumber]],
components: [options.selectMenu.toggle ? await SelectMenuCreator(pageLength, options.selectMenu.labels) : new ActionRowBuilder().addComponents(paginationInfo.buttonList)], fetchReply: true
components: [options.selectMenu.toggle ? await SelectMenuCreator(pageLength, options.selectMenu.labels) : new ActionRowBuilder().addComponents(paginationInfo.buttonList)],
fetchReply: true
} : {
embeds: [paginationInfo.pageList[pageNumber].setFooter({text: `${options.progressBar.toggle ? `${await ProgressBarCreator(pageLength, pageNumber, options.progressBar)}` : `Page ${pageNumber + 1} / ${pageLength}`}`})],
components: [options.selectMenu.toggle ? await SelectMenuCreator(pageLength, options.selectMenu.labels) : new ActionRowBuilder().addComponents(paginationInfo.buttonList)], fetchReply: true
components: [options.selectMenu.toggle ? await SelectMenuCreator(pageLength, options.selectMenu.labels) : new ActionRowBuilder().addComponents(paginationInfo.buttonList)],
fetchReply: true
}
let pagination;
if (options.privateReply) {
Expand Down

0 comments on commit 8050c84

Please sign in to comment.