MessageBuilder class

Allows to create pre built custom messages which can be passed to classes which inherits from ISend.

Inheritance

Constructors

MessageBuilder()

Properties

allowedMentions AllowedMentions
AllowedMentions object to control mentions in message
read / write, inherited
content String
Returns current content of message
read / write, inherited
embed EmbedBuilder
Embed to include in message
read / write, inherited
files List<AttachmentBuilder>
List of files to send with message
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tts bool
Set to true if message should be TTS
read / write

Methods

addAttachment(AttachmentBuilder attachment) → void
Add attachment
addBytesAttachment(List<int> bytes, String name, {bool spoiler: false}) → void
Add attachment from specified bytes
addFileAttachment(File file, {String name, bool spoiler: false}) → void
Add attachment from specified file
addPathAttachment(String path, {String name, bool spoiler: false}) → void
Add attachment at specified path
append(Object text) → void
Allows to append
inherited
appendBold(Object text) → void
Appends bold text to message
inherited
appendClearCharacter() → void
Appends clear character. Can be used to skip first line in message body.
inherited
appendCode(Object language, Object code) → void
Appends code block to message
inherited
appendCodeSimple(Object text) → void
Appends simple code to message
inherited
appendItalics(Object text) → void
Appends italic text to message
inherited
appendNewLine() → void
Appends empty line to message
inherited
appendSpoiler(Object text) → void
Appends spoiler to message
inherited
appendStrike(Object text) → void
Appends strikeout text to message
inherited
appendWithDecoration(Object text, MessageDecoration decoration) → void
Appends formatted text to message
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
send(ISend entity) Future<Message>
Sends message
setEmbed(void builder(EmbedBuilder embed)) → void
Allows to add embed to message
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited