misc bugfixes

This commit is contained in:
Erik 2022-05-09 22:57:31 +03:00
parent db2ff57224
commit f05c803597
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
4 changed files with 7 additions and 3 deletions

View File

@ -18,7 +18,7 @@ class RateLimiter {
this.lastSend = {}; //used by limitSend
this.lastDelete = {};
this.sendInterval = 7.5; //How frequently sending is allowed in seconds
this.sendInterval = 5; //How frequently sending is allowed in seconds
this.deleteInterval = 2.5; //How frequently delete queues should be executed
}

View File

@ -89,6 +89,10 @@ class MessageWrapper {
return this._reply.edit(options);
}
awaitReactions(...opts) {
return this.message.awaitReactions(...opts);
}
}
module.exports = MessageWrapper;

View File

@ -117,7 +117,7 @@ class UnmuteInfraction extends Infraction {
break;
}
if(callback) this.client.moderationManager.removeCallback(callback);
if(callback) this.client.moderationManager.removeCallback(callback, true);
await this.handle();
return this._succeed();

View File

@ -475,7 +475,7 @@ class CommandHandler extends Observer {
}
};
return invoker.reply(messages[info.type](), { _edit: invoker.replied });
return invoker.reply({ ...messages[info.type](), _edit: invoker.replied });
}