From df91191cf32c1b554d2ab3d51773e8b3fceea1b4 Mon Sep 17 00:00:00 2001 From: Emily J Date: Sat, 10 Oct 2020 13:15:40 +1100 Subject: [PATCH] cleaned up isDeveloper(); --- bot/util/functions.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/bot/util/functions.js b/bot/util/functions.js index 63a12d4..7c7c236 100644 --- a/bot/util/functions.js +++ b/bot/util/functions.js @@ -19,17 +19,11 @@ class Functions { // Simple check to see if someone is a developer or not isDeveloper (userID) { - let isDev = false; - const developers = this.client.config.ownerIDs; - - developers.forEach(devID => { - if (devID === userID) { - isDev = true; - } - }); - - return isDev; - } + if (this.client.config.ownerIDs.includes(userID)) { + return true; + }; + return false; + }; // Cleans output and removes sensitive information, used by eval async clean (text) {