Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
fix pagination (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajamoulimallareddy committed Aug 23, 2021
1 parent 0720ca8 commit 2083628
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ class Util {

this.pagination(msg, author, contents, currPage);
})
.on("end", () => {
msg.edit({ components: [new MessageActionRow().addComponents(...msg.components[0].components.map(x => x.setDisabled(true)))] });
.on("end", (_, reason) => {
if (['time', 'user'].includes(reason)) msg.edit({ components: [new MessageActionRow().addComponents(...msg.components[0].components.map(x => x.setDisabled(true)))] });
});
}

Expand Down Expand Up @@ -114,4 +114,4 @@ class Util {
}
}

module.exports = Util;
module.exports = Util;

0 comments on commit 2083628

Please sign in to comment.