Don't load commands if env variable doesn't exist, removed catfact/dogfact, many other changes
This commit is contained in:
parent
0920c459d5
commit
16927d8667
20 changed files with 116 additions and 83 deletions
|
@ -52,7 +52,13 @@ const paginationEmbed = async (message, pages, timeout = 120000) => {
|
|||
}
|
||||
}
|
||||
});
|
||||
reactionCollector.on("end", () => currentPage.removeReactions());
|
||||
reactionCollector.on("end", () => {
|
||||
try {
|
||||
currentPage.removeReactions();
|
||||
} catch (e) {
|
||||
console.log("Reaction message was deleted");
|
||||
}
|
||||
});
|
||||
return currentPage;
|
||||
};
|
||||
module.exports = paginationEmbed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue