Fixed Discord API errors with purge and pagination

This commit is contained in:
TheEssem 2020-01-06 20:22:55 -06:00
parent 77ca68f39b
commit 8d03ddadb3
2 changed files with 2 additions and 5 deletions

View file

@ -56,7 +56,7 @@ const paginationEmbed = async (message, pages, timeout = 120000) => {
}
});
reactionCollector.once("end", () => {
if (!deleted) currentPage.removeReactions();
if (!deleted && manageMessages) currentPage.removeReactions();
});
return currentPage;
};