Auth
Properties
Section titled “Properties”Type: Bot
loginInfo Getter
Section titled “loginInfo ”Initial information available about the account.
Type: LoginInfo | null
password Getter
Section titled “password ”The password of the current user.
Type: string
servers Getter
Section titled “servers ”The list of servers as shown to the client.
Type: Server[]
username Getter
Section titled “username ”The username of the current user.
Type: string
Methods
Section titled “Methods”connectTo
Section titled “connectTo”Connects to a server.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the server. |
Returns: boolean
isLoggedIn
Section titled “isLoggedIn”Whether the user is logged in and connected to a server.
Returns: boolean
isTemporarilyKicked
Section titled “isTemporarilyKicked”Whether the client is temporarily kicked from the server.
Returns: boolean
Log in with an account.
| Parameter | Type | Description |
|---|---|---|
| username | string | The username to login with. |
| password | string | The password to login with. |
Returns: void
logout
Section titled “logout”Logs out of the current account.
Returns: void