✍️ Discord Markdown & Formatting
Discord supports a set of Markdown commands to format your messages. They help a lot when you write announcements, guides or just want to make a point.
Basic formatting
| You type | Result |
|---|---|
**text** | Bold |
*text* or _text_ | Italic |
***text*** | Bold and italic |
__text__ | Underlined |
~~text~~ | |
`text` | Inline code |
Spoilers
Wrap text in two vertical bars on each side to hide it until someone clicks on it:
||The traitor was Steve all along||
Headings and small text
Headings work in normal messages:
# Big heading
## Medium heading
### Small heading
-# Small grey subtext
Headings only work at the very start of a line, followed by a space.
Lists and quotes
- First point
- Second point
- Indented point
1. Step one
2. Step two
> This is a single line quote
>>> Everything after this
becomes one long quote
Links
[Avertox Wiki](https://wiki.avertox.net)
<https://avertox.net>
The first line creates a link with custom text. Angle brackets around a URL hide the link preview.
Code blocks
For multiple lines of code, use three backticks. Add a language name after the first three backticks for syntax highlighting:
```python
def hello():
print("Hello Avertox")
```
Supported languages include python, javascript, json, yaml, bash, java, cpp, css and sql.
Discord has no real text colors, but a diff code block gives you green and red lines:
```diff
+ This line is green
- This line is red
```
Mentions
| You type | What it does |
|---|---|
@username | Mentions a person |
@here | Notifies everyone online in the channel |
@everyone | Notifies everyone on the server (needs permission) |
#channel-name | Links a channel |
Timestamps
Timestamps show the same moment in the local time of every reader. Very handy for event announcements.
<t:1700000000:F>
| Format | Shows |
|---|---|
<t:1700000000:t> | Short time |
<t:1700000000:T> | Long time |
<t:1700000000:d> | Short date |
<t:1700000000:D> | Long date |
<t:1700000000:f> | Date and time |
<t:1700000000:F> | Weekday, date and time |
<t:1700000000:R> | Relative, for example "in 2 hours" |
You can create Unix timestamps on epochconverter.com.
Common mistakes
- Formatting does not work: There must be no space between the symbols and the text.
**text**works,** text **does not. - Code block does not open: The backtick is not the same as an apostrophe. On most keyboards it is next to the backspace key or the 1 key.
- Unwanted link preview: Put the URL in angle brackets.