MessageDecoration class Null safety
Specifies formatting of String appended with MessageBuilder
Properties
Methods
-
format(
String text) → String - Creates formatted string
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
inherited
Constants
- bold → const MessageDecoration
-
Bold text is surrounded with
**
MessageDecoration._new("**")
- codeLong → const MessageDecoration
-
Multiline code block is surrounded with
```
MessageDecoration._new("```")
- codeSimple → const MessageDecoration
-
Inline code text is surrounded with
`
MessageDecoration._new("`")
- italics → const MessageDecoration
-
Italic text is surrounded with
*
MessageDecoration._new("*")
- spoiler → const MessageDecoration
-
Spoiler text is surrounded with
||
. In discord client will render as clickable box to reveal text.MessageDecoration._new("||")
- strike → const MessageDecoration
-
Strike text is surrounded with
~~
MessageDecoration._new("~~")
- underline → const MessageDecoration
-
Underlined text is surrounded with
__
MessageDecoration._new("__")