📅  最后修改于: 2022-03-11 14:57:53.880000             🧑  作者: Mango
client.fetchMessageRateLimits()
.then(rateLimits => {
for (rateLimit of rateLimits) {
if (rateLimit.remaining === 0) {
const msUntilReset = rateLimit.reset - Date.now();
commandHandler.ignoreChannel(rateLimit.channelId, msUntilReset);
}
}
});