Fixed paginator not removing reactions on end

This commit is contained in:
Essem 2021-06-30 11:56:45 -05:00
parent 4a516329e5
commit b24e99d8e8
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -72,7 +72,7 @@ module.exports = async (client, message, pages, timeout = 120000) => {
});
reactionCollector.once("end", async () => {
try {
await client.getMessage(currentPage.channel, currentPage.id);
await client.getMessage(currentPage.channel.id, currentPage.id);
if (manageMessages) {
await currentPage.removeReactions();
}