PendingLogin

Methods
3
Fields
None

Methods

MethodReturnsDescription
getName()stringThe friend's name, as the client keeps it (a no-break space kept as one: Text.toJagexName cleans it).
getWorld()numberThe world the friend logged into, or 0 for a logout.
remove()()Drop this notification so the client never posts it: how to hide a friend's login while walking getPendingLogins(). The client cancels it…

Returned by

MethodReturnsDescription
FriendContainer.getPendingLogins{PendingLogin}The friends' login and logout notifications the client has queued and not posted yet ("<name> has logged in." follows five seconds after th…

Method details

getName

getName: (PendingLogin) -> string

The friend's name, as the client keeps it (a no-break space kept as one: Text.toJagexName cleans it).

remove

remove: (PendingLogin) -> ()

Drop this notification so the client never posts it: how to hide a friend's login while walking getPendingLogins(). The client cancels it as it cancels a world hop's pair. Nothing happens when it was posted already or removed before. Game thread only, as every client write; raises on a client whose table has the write off.