Correctly reference SocketlibInvalidUserError
This commit is contained in:
1 parent
2909bc16f5
commit
86b0162c9c
2 files changed
+8
-2
No files matched your search
+2
-2
@@ -100,9 +100,9 @@ class SocketlibSocket {
|
||||
return func(...args);
|
||||
const user = game.users.get(userId);
|
||||
if (!user)
|
||||
throw new SocketlibInvalidUserError(`No user with id '${userId}' exists.`);
|
||||
throw new errors.SocketlibInvalidUserError(`No user with id '${userId}' exists.`);
|
||||
if (!user.active)
|
||||
throw new SocketlibInvalidUserError(`User '${user.name}' (${userId}) is not connected.`);
|
||||
throw new errors.SocketlibInvalidUserError(`User '${user.name}' (${userId}) is not connected.`);
|
||||
return this._sendRequest(name, args, [userId]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user