From 1e1051d72f3de2ca3b2214e73c72bac2ab19c3d0 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Sat, 2 Dec 2023 22:04:27 +0100 Subject: [PATCH] see if this one resolves the issue --- labscore/paginator/structures/Paginator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/labscore/paginator/structures/Paginator.js b/labscore/paginator/structures/Paginator.js index 89a28fd..3bd477d 100644 --- a/labscore/paginator/structures/Paginator.js +++ b/labscore/paginator/structures/Paginator.js @@ -153,10 +153,11 @@ module.exports = class Paginator { if (!(l instanceof BasePaginator)) continue; if (!l.commandMessage) continue; - if (data.context.message & l.isCommandMessage(data.context.message.id)) { + if (data.context.message?.id && l.isCommandMessage(data.context.message?.id)) { listener = l } } + if(listener) await listener.stop() const instance = new BasePaginator(this, data);