MessageDecoration class

Specifies formatting of String appended with MessageBuilder

Inheritance

Properties

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
value String
Returns value of enum
read-only, inherited

Methods

format(Object text) String
Creates formatted string
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

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

Constants

bold → const MessageDecoration
Bold text is surrounded with **
const MessageDecoration._new("**")
codeLong → const MessageDecoration
Multiline code block is surrounded with `````
const MessageDecoration._new("```")
codeSimple → const MessageDecoration
Inline code text is surrounded with ```
const MessageDecoration._new("`")
italics → const MessageDecoration
Italic text is surrounded with *
const MessageDecoration._new("*")
spoiler → const MessageDecoration
Spoiler text is surrounded with ||. In discord client will render as clickable box to reveal text.
const MessageDecoration._new("||")
strike → const MessageDecoration
Strike text is surrounded with ~~
const MessageDecoration._new("~~")
underline → const MessageDecoration
Underlined text is surrounded with __
const MessageDecoration._new("__")