nyxx_extensions library

Classes

EmojiDefinition
Wrapper class around discords emojis data
MessageResolver
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
Regexes
Collection of regexes for message entities
StreamUtils
StringUtils

Extensions

DownloadAttachmentExtensions
Extensions for downloading attachment
EmbedAuthorBuilderJson
Collection of extensions for EmbedAuthorBuilder
EmbedBuilderJson
Collection of extensions for EmbedBuilder
EmbedFieldBuilderJson
Collection of extensions for EmbedFieldBuilder
EmbedFooterBuilderJson
Collection of extensions for EmbedFooterBuilder
GuildExtension
MessageResolverExtension
Extends Message class with MessageResolver

Properties

emojiDataUri Uri
Emoji definitions uri
final

Functions

filterEmojiDefinitions(bool predicate(EmojiDefinition), {bool cache = false}) Stream<EmojiDefinition>
Returns emoji based on given predicate. Allows to cache results via cache parameter.
getAllEmojiDefinitions({bool cache = false}) Stream<EmojiDefinition>
Returns all possible EmojiDefinitions. Allows to cache results via cache parameter. If emojis are cached it will resolve immediately with result.

Enums

TagHandling
Possible types of tag handling for MessageResolver

Typedefs

MissingEntityHandler = FutureOr<String> Function(String entityType)
Allows to return custom messages in case of missing entities when resolving message content. entityType could be either role, channel or user.
RawApiMap = Map<String, dynamic>