As a communication app with text capabilities, Discord includes a number of markdown features to style text. The most recently added markdown feature is the spoiler tag. The spoiler markdown allows you to hide text or an image behind an overlay. Users that are ok with spoilers can click on the overlay to reveal the spoiler, while users that want to avoid the spoiler can avoid it.
To hide a spoiler, you need to use the spoiler markdown syntax. In Discord, this is the “pipe” or “vertical slash” character “|”, more specifically two of them “||”. To mark text as a spoiler you need to place two pipe characters on either side of the spoiler. This works for both the entire message or just part of it.
For example, if you want to hide the word “spoilers” in the message “Hiding spoilers is good manners” you would write it as “Hiding ||spoilers|| is good manners”. Everything between the two pairs of pipe characters will be hidden by the spoiler overlay.
Tip: If the spoiler tags are working correctly, you can see a subtle effect around the affected text in the message composer bar.
If your keyboard doesn’t have the pipe key on it, you can still mark text as a spoiler by highlighting it before you post the message, then clicking the eye symbol on the right of the popup bar.
Note: The popup bar isn’t 100% reliable, in our testing it didn’t appear if you selected text via the keyboard, using shortcuts like “Ctrl + A” or using shift and the arrow keys. It does seem to work reliably if you highlight text with the mouse instead.
You can also mark images as spoilers by ticking the “Mark as spoiler” checkbox in the bottom-left of the image upload popup.
You should keep in mind that ticking “Mark as spoiler” for an image upload doesn’t mark the caption as a spoiler too. If the caption includes a spoiler you still need to separately use the markdown for that as well.
Did this help? Let us know!