work around discord.js bug

This commit is contained in:
Lamp 2018-08-12 12:37:34 -07:00
parent 98d06a124d
commit 973bf59cc7
No known key found for this signature in database
GPG Key ID: 0F1F8704BEDE369E
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ colorRoles.pruneOrphanRoles = async function() { // delete all color roles that
// event listeners
dClient.on('presenceUpdate', async (oldPresence, newPresence) => { // update color role on presence update // emitted also on member join (iirc)
if (oldPresence && oldPresence.status == newPresence.status) return;
//if (oldPresence && oldPresence.status == newPresence.status) return; // sometimes oldPresence.status getter throws an error
colorRoles.update(newPresence.member);
});