Don't rely on lavacord eris helper package, another pagination fix attempt, make cowsay use a different lib

This commit is contained in:
TheEssem 2021-03-05 12:06:22 -06:00
parent 45bb53d521
commit 2499fb2a3b
7 changed files with 4705 additions and 671 deletions

View file

@ -50,8 +50,13 @@ module.exports = async (message, pages, timeout = 120000) => {
}
});
reactionCollector.once("end", async () => {
if (currentPage.channel.messages.get(currentPage.id) && manageMessages) {
await currentPage.removeReactions();
try {
await currentPage.channel.getMessage(currentPage.id);
if (manageMessages) {
await currentPage.removeReactions();
}
} catch {
return;
}
});
return currentPage;