MessageTable

Utility class for constructing tabulated messages.

Constructors

this
this(string delim, bool wrapped, MessageBuffer buffer)

Creates a new MessageTable

Members

Functions

add
void add(string[] args)

Add a row to the table.

all
string[][] all()

Returns all entries in the table (incl. header)

appendToBuffer
void appendToBuffer(MessageBuffer buffer)

Appends the output of this table to a message buffer

appendToBuffers
MessageBuffer[] appendToBuffers(MessageBuffer delegate() createBuffer)

Appends the output of this table to N many message buffers

compileEntry
string compileEntry(string[] entry)

Compile an entry.

getContents
immutable(string) getContents()

Undocumented in source. Be warned that the author may not have intended to support it.

iterEntries
string[][] iterEntries()

Return the header concentated with the entries

setHeader
void setHeader(string[] args)

Set a header row. Will not be sorted or modified.

sort
void sort(uint column, int delegate(string) conv)

Sort entries by column. Column must be integral.

Variables

buffer
MessageBuffer buffer;

Undocumented in source.

Inherited Members

From BaseSendable

getEmbed
immutable(MessageEmbed) getEmbed()

Get embed from sendable

getContents
immutable(string) getContents()

Get contents from sendable

getNonce
immutable(string) getNonce()

Get nonce of sendable

getTTS
immutable(bool) getTTS()

Find whether the sendable has TTS (text-to-speech) enabled

Meta