diff options
| author | Rapptz <[email protected]> | 2021-07-03 08:38:05 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-07-03 08:39:02 -0400 |
| commit | 9f981e718bba0e67dc078f3e581cbed4fc968857 (patch) | |
| tree | 51da6f8010129585ea6ee4b51ab77da2427fcfa5 | |
| parent | Typehint permissions (diff) | |
| download | discord.py-9f981e718bba0e67dc078f3e581cbed4fc968857.tar.xz discord.py-9f981e718bba0e67dc078f3e581cbed4fc968857.zip | |
Mention the discord.ui types in the read-only component types
| -rw-r--r-- | discord/components.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/discord/components.py b/discord/components.py index 5edf9acd..789466cf 100644 --- a/discord/components.py +++ b/discord/components.py @@ -132,6 +132,11 @@ class Button(Component): This inherits from :class:`Component`. + .. note:: + + The user constructible and usable type to create a button is :class:`discord.ui.Button` + not this one. + .. versionadded:: 2.0 Attributes @@ -200,6 +205,11 @@ class SelectMenu(Component): A select menu is functionally the same as a dropdown, however on mobile it renders a bit differently. + .. note:: + + The user constructible and usable type to create a select menu is + :class:`discord.ui.Select` not this one. + .. versionadded:: 2.0 Attributes |