Removed unnecessary try/catch block from pagination, fixed font coloring with sonic

This commit is contained in:
TheEssem 2019-12-10 08:24:13 -06:00
parent c1f2eadf88
commit 346312f006
2 changed files with 3 additions and 7 deletions

View file

@ -56,11 +56,7 @@ const paginationEmbed = async (message, pages, timeout = 120000) => {
}
});
reactionCollector.once("end", () => {
try {
if (!deleted) currentPage.removeReactions();
} catch (e) {
console.log("Reaction message was deleted");
}
if (!deleted) currentPage.removeReactions();
});
return currentPage;
};