Don't rely on lavacord eris helper package, another pagination fix attempt, make cowsay use a different lib
This commit is contained in:
parent
45bb53d521
commit
2499fb2a3b
7 changed files with 4705 additions and 671 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue