Text Chat Markdown & Commands

From modtheplanet
Jump to navigation Jump to search

Text Chat Markdown

example syntax shortcut
italics *italics*

ctrl+ i

bold **bold**

ctrl+ b

bold italics ***bold italics***
strikethrough ~~strikethrough~~
underline __underline__

ctrl+ u

underline italics __*underline italics*__
bold underline __**bold underline**__
bold italics underline __***bold italics underline***__

To disable formatting, like in the examples above, use a backslash '\' before all leading and trailing symbols.(i.e. \~\_\* )

For example if you see chat text displayed as __underline__ the message would be written as \_\_underline\_\_

Hyperlinks

When you paste a link into Discord chat it will automatically convert to a hyperlink.

When available the link will also display an embedded preview of the page and content.

Discord chat message. URL hyperlinked with auto embedded content

To disable the auto-embed feature, wrap your link in < > tags.

Example: <http://www.modthepla.net>

To disable hyper-linking all together, use a backslash to escape one or both forward slashes after ('http:').

http://www.modthepla.net ⚌ http:\/\/www.modthepla.net

Block Quotation

A single line quote

Is written as > A single line quote

Many

lines

quoted.

Is written as

>>> Many

lines

quoted.

Code Blocks & Syntax Highlighting

Hello World! ⚌ `Hello World`

Multi-line code blocks are also possible, as well as syntax highlighting. https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md

<body>
<href>http://www.modthepla.net</href>
</body>

Place the name of the language right after the first three back-ticks. (hs, elm, fix, prolog, vim, yaml) ```html <body> <href>http://www.modthepla.net</href> </body> ```

Mention Channels & Threads

Text channels may be referenced by using a # before the channel name

#⁠𝖜𝖊𝖑𝖈𝖔𝖒𝖊 ⚌ #welcome

For voice channels & threads, simply right-click on the channel or thread and select Copy ID then enclose in tags <# >

⁠⏳ HyperbolicTimeWaster ⚌ <#181888764879044619>

In most cases Discord will now automatically convert the URL provided by right-click > Copy Link to a fancy channel link. But in cases where it does not automatically convert, such as messages sent by a bot or webhook, this information is important to note.

Preventing Discord Auto-Emoji When Using ASCII/Unicode

To prevent discord from auto converting symbols to emoji, placing a \ before you paste a symbol in the message box.

An animated.gif detailing the difference between raw pasting an ASCII symbol and using the escape sequence.

Using Server Emojis & Roles In Bot Messages

You will need to get the source ID of the emoji (This is NOT the same as right clicking an emoji and selecting Copy ID)

  1. Type in the message box the emoji/role you would like to use, but don't send the message just yet!
  2. Place the indicator before the emoji/role and add the character "\"
  3. Press Enter/Return or send the message in chat to view the source code
  4. Copy the source code from the chat message, then Paste in the bot message

An animated.gif detailing how to get the source ID of an emoji and use it in a bot message.