moar coed

This commit is contained in:
Jan 2020-12-23 14:12:45 +01:00
parent a9e18d9750
commit 6b03ce8f7d

View file

@ -76,7 +76,7 @@ module.exports.run = () => {
let noTimeout = (timeouts[user.id] && timeouts[user.id] < Date.now()); let noTimeout = (timeouts[user.id] && timeouts[user.id] < Date.now());
let perms = message.channel.permissionsFor(user.id); let perms = message.channel.permissionsFor(user.id);
if (!perms.has('SEND_MESSAGES') || !perms.has('ADD_REACTIONS')) { if (!perms.has('SEND_MESSAGES') || !perms.has('ADD_REACTIONS')) {
logger.warn(`${user.tag} => Ignoring reaction in ${message.channel}: User is missing permission`); logger.warn(`${user.tag} => Ignoring reaction in #${message.channel.name}: User is missing permission`);
reaction.users.remove(user.id); reaction.users.remove(user.id);
return; return;
} }