From ee51e35f6f5239b9c20b40a1b529d53da67bc1e8 Mon Sep 17 00:00:00 2001 From: Dragory Date: Fri, 11 Jan 2019 18:29:48 +0200 Subject: [PATCH] Fix potential error with webhook messages --- src/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.js b/src/utils.js index fdf4870..3751369 100644 --- a/src/utils.js +++ b/src/utils.js @@ -78,6 +78,7 @@ function postError(str) { * @returns {boolean} */ function isStaff(member) { + if (!member) return false; if (config.inboxServerPermission.length === 0) return true; return config.inboxServerPermission.some(perm => {