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)

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

getContents
immutable(string) getContents()

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

iterEntries
string[][] iterEntries()

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

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()

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

getContents
immutable(string) getContents()

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

getNonce
immutable(string) getNonce()

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

getTTS
immutable(bool) getTTS()

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

Meta