|
|
|
@ -116,7 +116,7 @@ class Pagination { |
|
|
|
|
this.controllers.collector.stop(); |
|
|
|
|
let fe = this.message.embeds[0]; |
|
|
|
|
fe.setDescription(`${fe.description}\n\n*This menu has ended, start a new one to interact with it!*`); |
|
|
|
|
fe.setFooter(`${fe.footer.text} | Menu ended`, this.client.user.avatarURL()); |
|
|
|
|
fe.setFooter(`${fe.footer && fe.footer.text && fe.footer.text.length ? ` | ${fe.footer.text}` : ''}Menu ended`, this.client.user.avatarURL()); |
|
|
|
|
await this.message.edit({ embeds: [fe] }); |
|
|
|
|
clearInterval(this.timeoutInterval); |
|
|
|
|
return this; |
|
|
|
@ -132,5 +132,6 @@ class Pagination { |
|
|
|
|
return await this.endControllers(); |
|
|
|
|
} |
|
|
|
|
; |
|
|
|
|
getCurrentPage() { return this.pages[this.currentPage]; } |
|
|
|
|
} |
|
|
|
|
exports.Pagination = Pagination; |
|
|
|
|