diff options
| author | Josh <[email protected]> | 2021-07-01 21:48:37 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-01 07:48:37 -0400 |
| commit | d001b9d0ee9120096e944cce82e55427d02d61e8 (patch) | |
| tree | 3072d6aa3d3a3b8af3ef345509e806dd2903b79f /discord/ui | |
| parent | [commands] Fix guild channel converters to work in DMs (diff) | |
| download | discord.py-d001b9d0ee9120096e944cce82e55427d02d61e8.tar.xz discord.py-d001b9d0ee9120096e944cce82e55427d02d61e8.zip | |
[docs] Fix more references
Co-Authored-By: Riley Shaw <[email protected]>
Diffstat (limited to 'discord/ui')
| -rw-r--r-- | discord/ui/select.py | 4 | ||||
| -rw-r--r-- | discord/ui/view.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/discord/ui/select.py b/discord/ui/select.py index a563e64b..f921e22b 100644 --- a/discord/ui/select.py +++ b/discord/ui/select.py @@ -196,9 +196,9 @@ class Select(Item[V]): description: Optional[:class:`str`] An additional description of the option, if any. Can only be up to 50 characters. - emoji: Optional[Union[:class:`str`, :class:`Emoji`, :class:`PartialEmoji`]] + emoji: Optional[Union[:class:`str`, :class:`.Emoji`, :class:`.PartialEmoji`]] The emoji of the option, if available. This can either be a string representing - the custom or unicode emoji or an instance of :class:`PartialEmoji` or :class:`Emoji`. + the custom or unicode emoji or an instance of :class:`.PartialEmoji` or :class:`.Emoji`. default: :class:`bool` Whether this option is selected by default. diff --git a/discord/ui/view.py b/discord/ui/view.py index 7f96a4af..e6f8df34 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -194,7 +194,7 @@ class View: def from_message(cls, message: Message, /, *, timeout: Optional[float] = 180.0) -> View: """Converts a message's components into a :class:`View`. - The :attr:`Message.components` of a message are read-only + The :attr:`.Message.components` of a message are read-only and separate types from those in the ``discord.ui`` namespace. In order to modify and edit message components they must be converted into a :class:`View` first. |