====== C2S Packet 2: Message Send ====== Submits a new message to the channel the user is currently in, or executes a [[sockchat:commands|command]]. ===== Format ===== ^ Index ^ Type ^ Description ^ | 0 | ''%%2%%'' | Message Send packet ID | | 1 | [[sockchat:types#string|string]] | Current user ID | | 2 | [[sockchat:types#string|string]] | Message body or command | ===== Examples ====== User 115 sending a message containing the text "I'm married to the moon." 2\t115\tI'm married to the moon. User 1 issuing a [[sockchat:commands:kick|/kick]] command for a user named Satori. 2\t1\t/kick Satori ===== See Also ===== * [[sockchat:s2c:message-add|S2C Packet 2: Message Add]] - S2C Packet that informs of new messages. * [[sockchat:s2c:context-message-add|S2C Packet 7.1: Context Message Add]] - S2C Packet that informs of existing messages in the backlog. * [[sockchat:commands|Commands]] - List of client commands.