see if this one resolves the issue

This commit is contained in:
derpystuff 2023-12-02 22:04:27 +01:00
parent 41ae0e1477
commit 1e1051d72f

View file

@ -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);