ReferenceFormatting & media
Message formatting
Mentions, emoji, timestamp styles, guild navigation links and markdown syntax.
Mentions and tokens 12
| Type | Syntax | Example |
|---|---|---|
| User | <@USER_ID> | <@80351110224678912> |
| User (legacy)Deprecated; treat like a normal user mention | <@!USER_ID> | <@!80351110224678912> |
| Channel | <#CHANNEL_ID> | <#103735883630395392> |
| Role | <@&ROLE_ID> | <@&165511591545143296> |
| Game profile | <@$GAME_ID> | <@$1402418491272986635> |
| Slash command | </NAME:COMMAND_ID> | </airhorn:816437322781949972> |
| Slash command with subcommand | </NAME SUBCOMMAND:ID> | </foo bar:123456789012345678> |
| Slash command with subcommand group | </NAME SUBCOMMAND_GROUP SUBCOMMAND:ID> | </foo group bar:123456789012345678> |
| Custom emoji | <:NAME:ID> | <:mmLol:216154654256398347> |
| Animated custom emoji | <a:NAME:ID> | <a:b1nzy:392938283556143104> |
| Unix timestamp | <t:TIMESTAMP> | <t:1618953630> |
| Styled unix timestamp | <t:TIMESTAMP:STYLE> | <t:1618953630:d> |
Timestamp styles 9
<t:UNIX_SECONDS:STYLE> renders in each viewer’s timezone and locale.
| Style | Format | Example output | Default |
|---|---|---|---|
t | Short Time | 16:20 | – |
T | Medium Time | 16:20:30 | – |
d | Short Date | 20/04/2021 | – |
D | Long Date | April 20, 2021 | – |
f | Long Date, Short Time | April 20, 2021 at 16:20 | Yes |
F | Full Date, Short Time | Tuesday, April 20, 2021 at 16:20 | – |
s | Short Date, Short Time | 20/04/2021, 16:20 | – |
S | Short Date, Medium Time | 20/04/2021, 16:20:30 | – |
R | Relative Time | 4 years ago | – |
Guild navigation 5
| Syntax | Links to |
|---|---|
<id:customize> | Channel & Roles tab with Onboarding prompts |
<id:browse> | Browse Channels tab |
<id:guide> | Server Guide tab |
<id:linked-roles> | Linked Roles tab |
<id:linked-roles:id> | Specific linked role, opening the connection modal on click (the second id is the role id) |
Markdown 20
| Style | Syntax |
|---|---|
| Bold | **text** |
| Italic`_text_` works too | *text* |
| Underline | __text__ |
| Strikethrough | ~~text~~ |
| Bold italic | ***text*** |
| Underline italic | __*text*__ |
| Spoiler | ||text|| |
| Inline code | `code` |
| Code blockLanguage hint enables syntax highlighting | ```lang
code
``` |
| Heading 1 | # Heading |
| Heading 2 | ## Heading |
| Heading 3 | ### Heading |
| Subtext | -# small text |
| Block quoteSingle line | > quote |
| Multi-line quoteQuotes everything after it | >>> quote |
| Bulleted list`*` also works; indent to nest | - item |
| Numbered list | 1. item |
| Masked link | [label](https://example.com) |
| Suppress embedWrapping a URL in angle brackets stops the preview | <https://example.com> |
| EscapeBackslash escapes any markdown character | \*not italic\* |
Nothing in this table matches. Try a name, a number or part of the description.