Skip to content

Commit

Permalink
Update InteractionPagination.js
Browse files Browse the repository at this point in the history
  • Loading branch information
acegoal07 committed Aug 15, 2023
1 parent 7715e1f commit 3ac3b50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/InteractionPagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ exports.InteractionPagination = async(paginationInfo, options) => {
// Timeout ended or embed was deleted
collector.once("end", async() => {
try {
// Checks whether ephemeral is enabled and exists if it is
if (paginationInfo.portal.ephemeral) {return;}
// Make sure the embed exists
await paginationInfo.portal.channel.messages.fetch({message: pagination.id});
Expand Down

0 comments on commit 3ac3b50

Please sign in to comment.