Fix potential error with webhook messages
parent
1fa45b9f8d
commit
ee51e35f6f
|
@ -78,6 +78,7 @@ function postError(str) {
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
function isStaff(member) {
|
function isStaff(member) {
|
||||||
|
if (!member) return false;
|
||||||
if (config.inboxServerPermission.length === 0) return true;
|
if (config.inboxServerPermission.length === 0) return true;
|
||||||
|
|
||||||
return config.inboxServerPermission.some(perm => {
|
return config.inboxServerPermission.some(perm => {
|
||||||
|
|
Loading…
Reference in New Issue