Colored text at odds

My goal is to partially color the text. I know that I can use .sendCode("css","this is my message");that will make my text yellow, but I do not want all the text to be yellow.

Perhaps I could create another .css file and then call it from my JavaScript file, but since I'm inexperienced in JavaScript, I would like to help with it. I think this is the fastest way to do this.

+4
source share
2 answers

Difference does not allow colored text. Although at present you have two options to "imitate" colored text.

Option No. 1 (Markdown Code Blocks)

Discord Markdown highlight.js . highlight.js .

, ( Markdown).

```language
message
```

, : (/), css ().

№ 2 ()

Discord Embeds Webhooks, , . , Embeds, lib.

( )
Insert Cheat Sheet

+9

, discord.js , .

, : , . , , : https://discord.gg/JBp6gSN

, . , (`) , , , ( / ). , ! [ ]

+1

Source: https://habr.com/ru/post/1667188/


All Articles