Module chat.Channel
Represents chat channel.
Functions
instance:getName () | Returns channel name (counterpart user id for private channel). |
instance:isPrivate () | Returns true if channel is private. |
instance:getMessages () | Returns messages cache. |
instance:getLastId () | Returns Returns ID of the last message received. |
instance:clearMessages () | Clears messages cache. |
Functions
- instance:getName ()
-
Returns channel name (counterpart user id for private channel).
Returns:
-
string
Channel name.
- instance:isPrivate ()
-
Returns true if channel is private.
Returns:
-
boolean
Channel private status.
- instance:getMessages ()
-
Returns messages cache.
Returns:
-
table
Array of chat.Message.
- instance:getLastId ()
-
Returns Returns ID of the last message received.
Returns:
-
number
Last message ID.
- instance:clearMessages ()
- Clears messages cache.