chats.active
chats.active returns the 5 most recent users the caller sent and received via chats.tell, as well as the 5 most recent channels where messages have been sent via chats.send.
Security level
MIDSEC
Syntax
CLI
chats.active
Script
#ms.chats.active()
Parameters
No known parameters.
Return
Returns an object.
CLI
>>chats.active
--Sent--
trust
0000
example_user
--Received--
example_user
boo7_str4p
Script
{"sent":[{"user":"trust"},{"channel":"0000"},{"user":"example_user"}],"received":[{"user":"example_user"},{"user":"boo7_str4p"}]}
Example
function(context, args)
{
return #ms.chats.active()
}