Skip to content

Commit

Permalink
feat(popular-topics): add subtext formatter (#1574)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amgelo563 authored Sep 7, 2024
1 parent 50c8cfe commit c2789c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guide/popular-topics/formatters.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ discord.js provides the <DocsLink section="formatters" /> package which contains
These functions format strings into all the different Markdown styles supported by Discord.

```js
const { blockQuote, bold, italic, quote, spoiler, strikethrough, underline } = require('discord.js');
const { blockQuote, bold, italic, quote, spoiler, strikethrough, underline, subtext } = require('discord.js');
const string = 'Hello!';

const boldString = bold(string);
Expand All @@ -17,6 +17,7 @@ const underlineString = underline(string);
const spoilerString = spoiler(string);
const quoteString = quote(string);
const blockquoteString = blockQuote(string);
const subtextString = subtext(string);
```

## Links
Expand Down

0 comments on commit c2789c2

Please sign in to comment.