From 412d8f819b3207c6d39313d29c3dac75cba9520b Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Wed, 17 Jan 2024 15:48:43 +0100 Subject: [PATCH] misc changes --- docs/guide/topics/embeds.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/guide/topics/embeds.rst b/docs/guide/topics/embeds.rst index 85d8e9176..5ca0d86db 100644 --- a/docs/guide/topics/embeds.rst +++ b/docs/guide/topics/embeds.rst @@ -28,7 +28,7 @@ seen one appear with a brief description and maybe an image or video. +---------------------+----------------------+----------------------+---------------------+ The examples above are just a few common samples of what you seen often around Discord, these are automatically generated -by discord based on the metadata from the site that is being linked but you don't need to remember any of this. +by discord based on the metadata from the linked sites but you don't need to remember any of this. Internally, an embed is represented with a JSON payload by the API. discord.py offers a builder-esque interface over this payload to help make the process more straightforward and intuitive in Python. @@ -131,12 +131,12 @@ Let's see it on Discord: Notice how how the fields are in a certain order, the ``Precipitation`` field is on the top and the other two are next to -each other on the bottom. This is because of the ``inline`` parameter. This argument takes either ``True`` or ``False`` to +each other on the bottom. This is because of the ``inline`` argument. This argument takes either ``True`` or ``False`` to determine whether or not the field should be on its own block. This is why the ``Precipitation`` field is on the top. -If the parameter is not passed, it's always ``True``. +If the argument is not passed, it's always ``True``. -Let's see what happens when we add a fourth field and don't pass the ``inline`` parameter: +Let's see what happens when we add a fourth field and don't pass the ``inline`` argument: .. code-block:: python @@ -425,6 +425,8 @@ Try it out: embed.set_author(name=bot.user, icon_url=bot.user.display_avatar) [EXPERIMENTAL] + + Empty spaces are not allowed but it can be tricked with a zero-width space (ZWS) character, ``\u200b``. Let's make a staircase of fields because why not?