You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Luno/util/cache/mute.js

9 lines
232 B

const Mute = require('../../models/mute');
module.exports = async (client) => {
client.misc.cache.mute = new Map();
for await (const mute of Mute.find()) {
client.misc.cache.mute.set(mute.uid, mute.until);
}
};