Methods
exists(player) → {boolean}
Check if a conversation exists for a player.
Parameters:
| Name | Type | Description |
|---|---|---|
player |
string
|
Player name or id. |
Returns:
- Type:
-
boolean
True when the player exists in memory.
initialize(player)
Initialize a conversation for a player.
Parameters:
| Name | Type | Description |
|---|---|---|
player |
string
|
Player name or id. |
register(player, message)
Register a new message for a player.
Parameters:
| Name | Type | Description |
|---|---|---|
player |
string
|
Player name or id. |
message |
Message
|
Message to register. |
retrieve(player) → {Conversation}
Retrieve the conversation for a player, creating it if needed.
Parameters:
| Name | Type | Description |
|---|---|---|
player |
string
|
Player name or id. |