Infinity.ChatBufferMessage

Fields

Name

Type

Access

Description

flags

Infinity.ChatBufferMessageFlags

r/w

Additional flags for the message, see Infinity.ChatBufferMessageFlags.

length

int

r/w

The length of the message, in bytes.

text

str

r/w

The UTF-8 encoded text of the message.

time

int

r/w

The time at which the message was received.

type

Infinity.ChatBufferMessageType

r/w

The Infinity.ChatBufferMessageType of the message.

user

Infinity.User

r/w

The Infinity.User that issued the message.

Methods

copy ()

free ()

Details

class Infinity.ChatBufferMessage

Represents a chat message.

copy()
Returns:

A new Infinity.ChatBufferMessage. Free with Infinity.ChatBufferMessage.free() when no longer needed.

Return type:

Infinity.ChatBufferMessage

Creates a copy of the given message.

free()

Frees the given Infinity.ChatBufferMessage which must have been created with Infinity.ChatBufferMessage.copy().