aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Krypton <[email protected]>2022-04-28 19:00:06 +0200
committerGravatar Krypton <[email protected]>2022-04-28 19:00:06 +0200
commitfa1dd4058e8606f165df5ff7902d9215eeec4679 (patch)
treeae8e04c8a8c0f34a82472ecb1f465daa5db414e1 /pydis_site
parentUpdate discord-messages-with-colors.md (diff)
Using static images
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/apps/content/resources/guides/python-guides/discord-messages-with-colors.md8
-rw-r--r--pydis_site/static/images/content/discord_colored_messages/ansi-colors.pngbin0 -> 33579 bytes
-rw-r--r--pydis_site/static/images/content/discord_colored_messages/result.pngbin0 -> 13740 bytes
3 files changed, 4 insertions, 4 deletions
diff --git a/pydis_site/apps/content/resources/guides/python-guides/discord-messages-with-colors.md b/pydis_site/apps/content/resources/guides/python-guides/discord-messages-with-colors.md
index c8e50d71..6845ce76 100644
--- a/pydis_site/apps/content/resources/guides/python-guides/discord-messages-with-colors.md
+++ b/pydis_site/apps/content/resources/guides/python-guides/discord-messages-with-colors.md
@@ -48,17 +48,17 @@ I simply use `\u001b[0;40m` (background color) and `\u001b[1;32m` (text color) a
Alternatively you can also directly combine them into a single prefix like the following: `\u001b[1;40;32m` and you can also use multiple values. Something like `\u001b[1;40;4;32m` would underline the text, make it bold, make it green and have a dark blue background.
Raw message:<br>
-\`\`\`ansi<br>
+\`\`\`ansi
\u001b[0;40m\u001b[1;32mThat's some cool formatted text right?<br>
-or<br>
+or
\u001b[1;40;32mThat's some cool formatted text right?<br>
\`\`\`
Result:
-![Background and text color](https://media.discordapp.net/attachments/739937507768270939/930460020603224084/Background-Text-Color.png)
+![Background and text color result](/static/images/content/discord_colored_messages/result.png)
The way the colors look like on Discord is shown in the image below:
-![ANSI Colors](https://media.discordapp.net/attachments/739937507768270939/930825555803263016/ANSI-Colors.png)
+![ANSI Colors](/static/images/content/discord_colored_messages/ansi-colors.png)
Note: If the change as not been brought to you yet, or other users, then you can use other code blocks in the meantime to get colored text. See this gist: <https://gist.github.com/matthewzring/9f7bbfd102003963f9be7dbcf7d40e51>
diff --git a/pydis_site/static/images/content/discord_colored_messages/ansi-colors.png b/pydis_site/static/images/content/discord_colored_messages/ansi-colors.png
new file mode 100644
index 00000000..32af146f
--- /dev/null
+++ b/pydis_site/static/images/content/discord_colored_messages/ansi-colors.png
Binary files differ
diff --git a/pydis_site/static/images/content/discord_colored_messages/result.png b/pydis_site/static/images/content/discord_colored_messages/result.png
new file mode 100644
index 00000000..a666804e
--- /dev/null
+++ b/pydis_site/static/images/content/discord_colored_messages/result.png
Binary files differ