fixes an issue where the bot would edit deleted replies

This commit is contained in:
derpystuff 2023-06-26 11:10:35 +02:00
parent bbafd7f48c
commit 4f1d288d3e
11 changed files with 31 additions and 32 deletions

View file

@ -41,10 +41,10 @@ module.exports = class BasePaginator extends EventEmitter {
async update(data) {
if (this.isShared) {
for (const m of this.commandMessage.values()) {
await m.edit(data);
if(!m.deleted) await m.edit(data);
}
} else if (this.commandMessage) {
this.commandMessage.edit(data);
if(!this.commandMessage.deleted) this.commandMessage.edit(data);
}
}