diff --git a/docs/reference.mdx b/docs/reference.mdx index 0d7503e6b9..90898ebe97 100644 --- a/docs/reference.mdx +++ b/docs/reference.mdx @@ -259,28 +259,32 @@ Discord utilizes a subset of markdown for rendering message content on its clien ###### Formats -| Type | Structure | Example | -|-------------------------|-----------------------|---------------------------------| -| User | `<@USER_ID>` | `<@80351110224678912>` | -| User \* | `<@!USER_ID>` | `<@!80351110224678912>` | -| Channel | `<#CHANNEL_ID>` | `<#103735883630395392>` | -| Role | `<@&ROLE_ID>` | `<@&165511591545143296>` | -| Slash Command \*\* | `` | `` | -| Standard Emoji | Unicode Characters | 🦶 | -| Custom Emoji | `<:NAME:ID>` | `<:mmLol:216154654256398347>` | -| Custom Emoji (Animated) | `` | `` | -| Unix Timestamp | `` | `` | -| Unix Timestamp (Styled) | `` | `` | -| Guild Navigation | `` | `` | - -Using the markdown for either users, roles, or channels will usually mention the target(s) accordingly, but this can be suppressed using the `allowed_mentions` parameter when creating a message. Standard emoji are currently rendered using [Twemoji](https://github.com/jdecked/twemoji) for Desktop/Android and Apple's native emoji on iOS. - -Timestamps are expressed in seconds and display the given timestamp in the user's timezone and locale. +| Type | Structure | Example | +|--------------------------------|-----------------------|---------------------------------| +| User | `<@USER_ID>` | `<@80351110224678912>` | +| User \* | `<@!USER_ID>` | `<@!80351110224678912>` | +| Channel | `<#CHANNEL_ID>` | `<#103735883630395392>` | +| Role | `<@&ROLE_ID>` | `<@&165511591545143296>` | +| Slash Command \*\* | `` | `` | +| Standard Emoji | Unicode Characters | 🦶 | +| Custom Emoji | `<:NAME:ID>` | `<:mmLol:216154654256398347>` | +| Custom Emoji (Animated) | `` | `` | +| Unix Timestamp \*\*\* | `` | `` | +| Unix Timestamp (Styled) \*\*\* | `` | `` | +| Guild Navigation | `` | `` | +| Email \*\*\*\* | `` | `` | +| Phone Number \*\*\*\* | `<+PHONE_NUMBER>` | `<+1 (555) 123 4567>` | + +Using the markdown for either users, roles, or channels will usually mention the target(s) accordingly, but this can be suppressed using the [`allowed_mentions`](/docs/resources/message#message-object) parameter (when creating a message). Standard emoji are currently rendered using [Twemoji](https://github.com/jdecked/twemoji) for Desktop/Android and Apple's native emoji on iOS. \* User mentions with an exclamation mark are deprecated and should be handled like any other user mention. \*\* Subcommands and subcommand groups can also be mentioned by using respectively `` and ``. +\*\*\* Timestamps are expressed in seconds and display the given timestamp in the user's timezone and locale. + +\*\*\*\* Email and phone number markdown uses `mailto:` and `tel:` URI schemes respectively that can optionally be prefixed (e.g. ``). Email markdown supports headers, values must be [URL Encoded](https://en.wikipedia.org/wiki/Percent-encoding) (e.g. ``). + ###### Timestamp Styles | Style | Example Output | Description | @@ -293,7 +297,7 @@ Timestamps are expressed in seconds and display the given timestamp in the user' | F | Tuesday, 20 April 2021 16:20 | Long Date/Time | | R | 2 months ago | Relative Time | -\*default +\* Default style used when no style is specified. ###### Guild Navigation Types