Detail 08 / Sheet 08 of 08

Links, timestamps & commands

Add a timestamp, a link, a slash command, or one of Discord's own interface shortcuts without leaving the message box.

Some of Discord’s formatting points outside the message: a timestamp that localizes itself, a link to a command, and shortcuts into the server’s own screens. Discord writes these tokens for you when you use its pickers, but you can also type them by hand.

Timestamps

A timestamp is a Unix time in seconds between angle brackets. Add a format letter after a second colon to choose the shape.

You type
<t:1700000000:F>
Discord shows
The format letter sets the shape; the reader's locale sets the wording and timezone.
LetterShows
tShort time
TLong time, with seconds
dShort date
DLong date
fShort date and time
FLong date and time, with the weekday
RRelative time

Discord converts the number to each reader’s own timezone and date format, so one message reads correctly in every locale. The same instant can be shown as a clock time, a calendar date, or a relative phrase, so pick the form that fits the sentence. The R form is the relative one, such as in 2 hours or 2 years ago.

Slash commands

Type / at the start of a message to open the command picker. Pick a command from the list; Discord inserts the command name for you. The picker also shows the command’s description and options. An app command only runs if that app is in the server. A slash typed in the middle of a sentence is plain text; the command has to start the message.

You can also point at an app command in text with </name:id>, where the id belongs to the app. Discord renders the token as /name.

You type
</info:905987126099836938>
Discord shows
/info
The token becomes a command chip; the id selects the app.

Pseudo-mentions

Discord’s own interface links use the same angle-bracket shape. They look like mentions but open a server screen instead of pinging someone.

  • <id:info> or <id:guide> opens the server guide.
  • <id:browse> opens channel browsing.
  • <id:customize> opens channels and roles.
You type
<id:guide> · <id:browse> · <id:customize>
Discord shows
Server Guide · Browse Channels · Channels and Roles
Each token becomes a link into a server screen.

These tokens are fixed names, not numbers. They are the same in every server that has the matching screen.

A message link has the server, channel, and message ids in that order: https://discord.com/channels/<server>/<channel>/<message>. Right-click a message and choose Copy Message Link to get the exact URL. The URL is plain text; Discord turns it into a link when the message sends. Copy the link from the client; typing the ids by hand is easy to get wrong.

The link only works for people who can see the channel; it does not bypass permissions.

A masked link puts a readable label over a URL: [text](https://example.com). The reader sees the text; the URL opens when they click.

The URL must start with http:// or https://. Without the scheme, Discord does not turn the token into a link.

You type
[the guide](https://example.com)
Discord shows
The label is what the reader sees; the URL is where the link goes.

Watch out

A timestamp takes seconds, not milliseconds. A 13-digit value is in milliseconds; divide it by 1000 before you paste it, or the date lands tens of thousands of years away. A 10-digit value is the safe shape for dates near today. JavaScript’s Date.now() returns milliseconds, so divide before you build the token.