Revert gmbuffer.js, improved tags a bit more, some more pagination work

This commit is contained in:
TheEssem 2019-11-30 09:48:05 -06:00
parent 16927d8667
commit c9f0ff3827
3 changed files with 47 additions and 38 deletions

View file

@ -45,6 +45,7 @@ const paginationEmbed = async (message, pages, timeout = 120000) => {
if (manageMessages) msg.removeReaction("▶", userID);
break;
case "🗑":
reactionCollector.emit("end");
currentPage.delete();
return;
default:
@ -52,7 +53,7 @@ const paginationEmbed = async (message, pages, timeout = 120000) => {
}
}
});
reactionCollector.on("end", () => {
reactionCollector.once("end", () => {
try {
currentPage.removeReactions();
} catch (e) {