pagination is never on short supply of bugs

master
Kit Kasune 3 years ago
parent 2ba3bfd0fe
commit 9b00820287
  1. 4
      util/pagination.js
  2. 2
      util/ts/pagination.ts

@ -112,7 +112,9 @@ class Pagination {
async updateControllers() { return this; }
;
async endControllers() {
await this.message.reactions.removeAll();
if (this.message.guild) {
await this.message.reactions.removeAll().catch(() => { });
}
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!*`);

@ -121,7 +121,7 @@ export class Pagination {
public async updateControllers(): Promise<Pagination> {return this;};
public async endControllers(): Promise<Pagination> {
await this.message.reactions.removeAll();
if (this.message.guild) {await this.message.reactions.removeAll().catch(() => {});}
this.controllers.collector.stop();
let fe = this.message.embeds[0];

Loading…
Cancel
Save