A message sent from a Ribbon indicating that the client has received a social message, including messages that the client sends.
- (object):
- (string)
command
: Always"social.dm"
. - (object)
data
:- (string)
stream
: The id of the chat stream. In practice, this is always the id of the client and the id of the other user joined by a colon, e.g."abcdef:012345"
. - (object)
data
:- (string)
content
: Contents of the message. - (string)
content_safe
: Contents of the message after being passed through TETR.IO's profanity filter. - (string)
user
: The id of the sender. - (object)
userdata
:- (string (Role))
role
: The role of the user.anon
will never be seen in-practice as such users cannot use the social system. - (boolean)
supporter
: Whether the user is a TETR.IO Supporter. - (boolean)
verified
: Whether the user is verified.
- (string (Role))
- (boolean)
system
: Whether this is a system message.
- (string)
- (string)
ts
: The ISO 8601-formatted timestamp of the message. - (string)
_id
: The id of the message.
- (string)
- (string)
data.data.user
and data.data.userdata
may not be present if data.data.system
is true
, though this has yet to be observed.