mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 01:16:21 +00:00
Implement New Select Types
Co-authored-by: Soheab_ <33902984+Soheab@users.noreply.github.com> Co-authored-by: rdrescher909 <51489753+rdrescher909@users.noreply.github.com> Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
@ -252,17 +252,35 @@ Enumerations
|
||||
.. attribute:: action_row
|
||||
|
||||
Represents the group component which holds different components in a row.
|
||||
|
||||
.. attribute:: button
|
||||
|
||||
Represents a button component.
|
||||
.. attribute:: select
|
||||
|
||||
Represents a select component.
|
||||
|
||||
.. attribute:: text_input
|
||||
|
||||
Represents a text box component.
|
||||
|
||||
.. attribute:: select
|
||||
|
||||
Represents a select component.
|
||||
|
||||
.. attribute:: string_select
|
||||
|
||||
An alias to :attr:`select`. Represents a default select component.
|
||||
|
||||
.. attribute:: user_select
|
||||
|
||||
Represents a user select component.
|
||||
|
||||
.. attribute:: role_select
|
||||
|
||||
Represents a role select component.
|
||||
|
||||
.. attribute:: mentionable_select
|
||||
|
||||
Represents a select in which both users and roles can be selected.
|
||||
|
||||
.. class:: ButtonStyle
|
||||
|
||||
Represents the style of the button component.
|
||||
@ -437,8 +455,13 @@ Button
|
||||
.. autofunction:: discord.ui.button
|
||||
:decorator:
|
||||
|
||||
Select Menus
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
The library provides classes to help create the different types of select menus.
|
||||
|
||||
Select
|
||||
~~~~~~~
|
||||
+++++++
|
||||
|
||||
.. attributetable:: discord.ui.Select
|
||||
|
||||
@ -446,11 +469,50 @@ Select
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
ChannelSelect
|
||||
++++++++++++++
|
||||
|
||||
.. attributetable:: discord.ui.ChannelSelect
|
||||
|
||||
.. autoclass:: discord.ui.ChannelSelect
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
RoleSelect
|
||||
++++++++++
|
||||
|
||||
.. attributetable:: discord.ui.RoleSelect
|
||||
|
||||
.. autoclass:: discord.ui.RoleSelect
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
MentionableSelect
|
||||
++++++++++++++++++
|
||||
|
||||
.. attributetable:: discord.ui.MentionableSelect
|
||||
|
||||
.. autoclass:: discord.ui.MentionableSelect
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
UserSelect
|
||||
+++++++++++
|
||||
|
||||
.. attributetable:: discord.ui.UserSelect
|
||||
|
||||
.. autoclass:: discord.ui.UserSelect
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
select
|
||||
+++++++
|
||||
.. autofunction:: discord.ui.select
|
||||
:decorator:
|
||||
|
||||
|
||||
TextInput
|
||||
~~~~~~~~~~
|
||||
~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ui.TextInput
|
||||
|
||||
|
Reference in New Issue
Block a user