mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-25 22:37:03 -04:00
fixes an issue where the bot would edit deleted replies
This commit is contained in:
parent
bbafd7f48c
commit
4f1d288d3e
11 changed files with 31 additions and 32 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue