mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
r
This commit is contained in:
parent
e561d72780
commit
c3e8edcd37
1 changed files with 2 additions and 2 deletions
|
@ -133,13 +133,13 @@ module.exports = class BasePaginator extends EventEmitter {
|
|||
this.pages.push(page)
|
||||
}
|
||||
|
||||
async stop(timeout = false) {
|
||||
stop(timeout = false) {
|
||||
this.emit("stop", this, timeout);
|
||||
this.removeAllListeners();
|
||||
const targetIndex = this.client.activeListeners.findIndex(v => v.message.id === this.message.id);
|
||||
this.client.activeListeners.splice(targetIndex, 1);
|
||||
// Disable components
|
||||
await this.update({components:[]});
|
||||
this.update({components:[]});
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue