Deprecated

Formatters

export class Formatters extends null
export class Formatters extends null
This class is redundant as all methods of the class can be imported from discord.js directly.
Deprecated
Contains various Discord-specific functions for formatting messages.

Extends

null
DeprecatedStatic
blockQuote:typeof blockQuote
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
bold:typeof bold
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
channelMention:typeof channelMention
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
codeBlock:typeof codeBlock
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
formatEmoji:typeof formatEmoji
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
hideLinkEmbed:typeof hideLinkEmbed
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
inlineCode:typeof inlineCode
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
italic:typeof italic
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
quote:typeof quote
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
roleMention:typeof roleMention
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
spoiler:typeof spoiler
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
strikethrough:typeof strikethrough
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
time:typeof time
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
TimestampStyles:typeof TimestampStyles
Import this property directly from discord.js instead.
Deprecated
The message formatting timestamp [styles](https://discord.com/developers/docs/reference#message-formatting-timestamp-styles) supported by Discord.
DeprecatedStatic
underscore:typeof underscore
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
userMention:typeof userMention
Import this method directly from discord.js instead.
Deprecated
DeprecatedStatic
blockQuote(content):string
Import this method directly from discord.js instead.
Deprecated
Formats the content into a block quote. This needs to be at the start of the line for Discord to format it.
NameTypeOptionalDescription
contentstringNoThe content to wrap
DeprecatedStatic
bold(content):string
Import this method directly from discord.js instead.
Deprecated
Formats the content into bold text.
NameTypeOptionalDescription
contentstringNoThe content to wrap
DeprecatedStatic
channelMention(channelId):string
Import this method directly from discord.js instead.
Deprecated
Formats a channel id into a channel mention.
NameTypeOptionalDescription
channelIdSnowflakeNoThe channel id to format
DeprecatedStatic
codeBlock(contentOrLanguage, content?):string
Import this method directly from discord.js instead.
Deprecated
Wraps the content inside a code block with an optional language.
NameTypeOptionalDescription
contentOrLanguagestringNoThe language to use or content if a second parameter isn't provided
contentstringYesThe content to wrap
DeprecatedStatic
formatEmoji(emojiId, animated?):string
Import this method directly from discord.js instead.
Deprecated
Formats an emoji id into a fully qualified emoji identifier.
NameTypeOptionalDescription
emojiIdstringNoThe emoji id to format
animatedbooleanYesWhether the emoji is animated
DeprecatedStatic
hideLinkEmbed(content):string
Import this method directly from discord.js instead.
Deprecated
Wraps the URL into <>, which stops it from embedding.
NameTypeOptionalDescription
contentstringNoThe content to wrap
Import this method directly from discord.js instead.
Deprecated
Formats the content and the URL into a masked URL with an optional title.
NameTypeOptionalDescription
contentstringNoThe content to display
urlstringNoThe URL the content links to
titlestringYesThe title shown when hovering on the masked link
DeprecatedStatic
inlineCode(content):string
Import this method directly from discord.js instead.
Deprecated
Wraps the content inside backticks, which formats it as inline code.
NameTypeOptionalDescription
contentstringNoThe content to wrap
DeprecatedStatic
italic(content):string
Import this method directly from discord.js instead.
Deprecated
Formats the content into italic text.
NameTypeOptionalDescription
contentstringNoThe content to wrap
DeprecatedStatic
quote(content):string
Import this method directly from discord.js instead.
Deprecated
Formats the content into a quote. This needs to be at the start of the line for Discord to format it.
NameTypeOptionalDescription
contentstringNoThe content to wrap
DeprecatedStatic
roleMention(roleId):string
Import this method directly from discord.js instead.
Deprecated
Formats a role id into a role mention.
NameTypeOptionalDescription
roleIdSnowflakeNoThe role id to format
DeprecatedStatic
spoiler(content):string
Import this method directly from discord.js instead.
Deprecated
Formats the content into spoiler text.
NameTypeOptionalDescription
contentstringNoThe content to spoiler
DeprecatedStatic
strikethrough(content):string
Import this method directly from discord.js instead.
Deprecated
Formats the content into strike-through text.
NameTypeOptionalDescription
contentstringNoThe content to wrap
DeprecatedStatic
time(date?, style?):string
Import this method directly from discord.js instead.
Deprecated
Formats a date into a short date-time string.
NameTypeOptionalDescription
datenumber | DateYesThe date to format
styleTimestampStylesStringYesThe style to use
DeprecatedStatic
underscore(content):string
Import this method directly from discord.js instead.
Deprecated
Formats the content into underscored text.
NameTypeOptionalDescription
contentstringNoThe content to wrap
DeprecatedStatic
userMention(userId):string
Import this method directly from discord.js instead.
Deprecated
Formats a user id into a user mention.
NameTypeOptionalDescription
userIdSnowflakeNoThe user id to format