misc bugfixes
This commit is contained in:
parent
db2ff57224
commit
f05c803597
@ -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
|
||||
|
||||
}
|
||||
|
@ -89,6 +89,10 @@ class MessageWrapper {
|
||||
return this._reply.edit(options);
|
||||
}
|
||||
|
||||
awaitReactions(...opts) {
|
||||
return this.message.awaitReactions(...opts);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = MessageWrapper;
|
@ -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();
|
||||
|
||||
|
@ -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 });
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user