From 973bf59cc724e00d156844d2e7e08da1e56b4495 Mon Sep 17 00:00:00 2001 From: Lamp Date: Sun, 12 Aug 2018 12:37:34 -0700 Subject: [PATCH] work around discord.js bug --- src/colorroles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/colorroles.js b/src/colorroles.js index 37837ee..8249a5e 100755 --- a/src/colorroles.js +++ b/src/colorroles.js @@ -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); });