From 9f981e718bba0e67dc078f3e581cbed4fc968857 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 3 Jul 2021 08:38:05 -0400 Subject: [PATCH] Mention the discord.ui types in the read-only component types --- discord/components.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/discord/components.py b/discord/components.py index 5edf9acd1..789466cfe 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