mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 10:49:20 +00:00
Handle if developers id is not defined
This commit is contained in:
@@ -3,8 +3,11 @@ import Environment from '../providers/Environment';
|
|||||||
|
|
||||||
class Users {
|
class Users {
|
||||||
public static isDeveloper(user: User | Snowflake) {
|
public static isDeveloper(user: User | Snowflake) {
|
||||||
const developers: Snowflake[] = Environment.get().DEVELOPER_IDS.split(',');
|
|
||||||
|
|
||||||
|
if(!Environment.get().DEVELOPERS)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
const developers: Snowflake[] = Environment.get().DEVELOPER_IDS.split(',');
|
||||||
let userID;
|
let userID;
|
||||||
|
|
||||||
if (user instanceof User) userID = user.id;
|
if (user instanceof User) userID = user.id;
|
||||||
|
|||||||
Reference in New Issue
Block a user