Class MessageBuffer
Utility class for constructing messages that can be sent over discord, allowing
for inteligent limiting of size and stripping of formatting characters.
Properties
Name |
Type |
Description |
contents
[get]
|
string |
Formatted contents of this message.
|
length
[get]
|
ulong |
Current length of this message (without formatting)
|
maxLength
[get]
|
ulong |
Max length of this message (subtracting for formatting)
|
Methods
Name |
Description |
append
|
Append a line to this message. Returns false if the buffer is full.
|
appendf
|
Format and append a line to this message. Returns false if the buffer is
full.
|
popBack
|
Remove the last line in the buffer
|
toSendableString
|
Returns a string that will NEVER be greater than 2000 characters
|