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 => {