MessageResolver class

Resolves raw message content to human readable string. Allows to set what to do with particular parts of message. Each mention, channel reference and emoji can be resolved by TagHandling

Constructors

MessageResolver(INyxx _client, {TagHandling userTagHandling = TagHandling.sanitize, TagHandling roleTagHandling = TagHandling.sanitize, TagHandling everyoneTagHandling = TagHandling.sanitize, TagHandling channelTagHandling = TagHandling.sanitize, TagHandling emojiTagHandling = TagHandling.sanitize, MissingEntityHandler? missingEntityHandler})
Create message resolver with given options
MessageResolver.uniform(INyxx client, TagHandling tagHandling)
Create message resolver with tag handlers set to tagHandling.
factory

Properties

channelTagHandling TagHandling
Handles resolving of channels mentions
final
emojiTagHandling TagHandling
Handles resolving of guild emojis
final
everyoneTagHandling TagHandling
Handles resolving of everyone/here mentions
final
hashCode int
The hash code for this object.
read-onlyinherited
missingEntityHandler MissingEntityHandler
Handles what will be returned in case if entity cannot be resolved
latefinal
roleTagHandling TagHandling
Handles resolving of role mentions
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
userTagHandling TagHandling
Handles resolving of user mentions
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(String messageContent) Future<String>
Resolves raw messageContent into human readable form.
toString() String
A string representation of this object.
inherited

Operators

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