MessageFormatting class
Discord utilizes a subset of markdown for rendering message content on its clients, while also adding some custom functionality to enable things like mentioning users and channels.
https://discord.com/developers/docs/reference#message-formatting
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
channel(
String channelId) → String - <#CHANNEL_ID>
-
emoji(
String name, String emojiId) → String - <:NAME:ID>
-
emojiAnimated(
String name, String emojiId) → String - <a:NAME:ID>
-
role(
String roleId) → String - <@&ROLE_ID>
-
timestamp(
DateTime timestamp) → String - <t:TIMESTAMP>
-
timestampStyled(
DateTime timestamp, TimestampStyle style) → String - <t:TIMESTAMP:STYLE>
-
user(
String userId) → String - <@USER_ID>
-
userNickname(
String userId) → String - <@!USER_ID>