Revert gmbuffer.js, improved tags a bit more, some more pagination work
This commit is contained in:
parent
16927d8667
commit
c9f0ff3827
3 changed files with 47 additions and 38 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue