nyxx_extensions
library
Classes
-
EmojiDefinition
-
Information about a text emoji.
-
A plugin that adds support for pagination to nyxx clients.
-
Options for controlling pagination.
Functions
-
bold(String content)
→ String
-
Wraps the
content
inside **
.
-
channelMention(Snowflake id)
→ String
-
Formats a channel ID into a channel mention.
-
codeBlock(String code, [String language = ''])
→ String
-
Wraps the
code
in a code block with the specified language, if any.
-
formatDate(DateTime date, [TimestampStyle style = TimestampStyle.none])
→ String
-
Formats the
date
into a date string timestamp.
-
getEmojiDefinitions()
→ Future<List<EmojiDefinition>>
-
List all the emoji definitions currently available.
-
hideEmbed(String url)
→ String
-
Wraps the
url
inside <>
, used to remove its embed.
-
hyperlink(String content, String url, [String? title])
→ String
-
Format the
content
and the URL into a hyperlink (aka Markdown link), and optionally, add a title
that will be displayed on hover.
-
inlineCode(String content)
→ String
-
Wraps the
content
inside backticks
.
-
italic(String content)
→ String
-
Wraps the
content
inside *
.
-
quote(String content)
→ String
-
Quotes the
content
.
-
quoteBlock(String content)
→ String
-
Quotes the
content
in a quote block.
-
roleMention(Snowflake id)
→ String
-
Formats a role ID into a role mention.
-
sanitizeContent(String content, {required PartialTextChannel channel, SanitizerAction action = SanitizerAction.sanitize, Map<SanitizerTarget, SanitizerAction>? actionOverrides})
→ Future<String>
-
Find SanitizerTargets in
content
and sanitize them according to action
.
-
spoiler(String content)
→ String
-
Wraps the
content
inside ||
.
-
strikethrough(String content)
→ String
-
Wraps the
content
inside ~~
.
-
underline(String content)
→ String
-
Wraps the
content
inside __
.
-
userMention(Snowflake id)
→ String
-
Formats a user ID into a user mention.