mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-23 21:37:07 -04:00
update quora command to allow for more questions
This commit is contained in:
parent
94bee05892
commit
2b618e536e
5 changed files with 100 additions and 7 deletions
|
@ -133,13 +133,21 @@ module.exports = class BasePaginator extends EventEmitter {
|
|||
this.pages.push(page)
|
||||
}
|
||||
|
||||
stop(timeout = false) {
|
||||
async 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
|
||||
this.update({components:[]});
|
||||
await this.update({components:[]});
|
||||
return this;
|
||||
}
|
||||
|
||||
stopWithoutUpdate(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);
|
||||
return this;
|
||||
}
|
||||
};
|
|
@ -13,6 +13,7 @@ const ButtonEmoji = Object.freeze({
|
|||
NEXT: '<:right:977871577758707782>',
|
||||
PREVIOUS: '<:left:977871577532211200>',
|
||||
STOP: '<:ico_trash:929498022386221096>',
|
||||
SEARCH: '<:search:1063080546365866056>',
|
||||
UNKNOWN: '<:ico_question:949420315677691934>'
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue