Message

Message.io (Server)

Socket.io instance.

Message.author (Socket)

Message author’s socket.

Message.content (string)

Message content.

Message.cancel (Function)

Stops message from being sent.

Message.reply (Function)

Parameters: message (string)

Sends message to the message author.

Message.to (Function)

Parameters: socket (string|Socket)

Returns: ToReturn


ToReturn

ToReturn.send (AsyncFunction)

Parameters: message (string)

Throws an error if user does not exist.

ToReturn.socket (AsyncFunction)

Returns: Socket

Throws an error if user does not exist.