Fixed Discord API errors with purge and pagination
This commit is contained in:
parent
77ca68f39b
commit
8d03ddadb3
2 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue