getName
getName: (PendingLogin) -> stringThe friend's name, as the client keeps it (a no-break space kept as one: Text.toJagexName cleans it).
| Method | Returns | Description |
|---|---|---|
getName() | string | The friend's name, as the client keeps it (a no-break space kept as one: Text.toJagexName cleans it). |
getWorld() | number | The 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… |
| Method | Returns | Description |
|---|---|---|
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… |
getNamegetName: (PendingLogin) -> stringThe friend's name, as the client keeps it (a no-break space kept as one: Text.toJagexName cleans it).
getWorldgetWorld: (PendingLogin) -> numberThe world the friend logged into, or 0 for a logout.
removeremove: (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.