mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add support for default_values field on selects
This commit is contained in:
18
docs/api.rst
18
docs/api.rst
@ -3392,6 +3392,24 @@ of :class:`enum.Enum`.
|
||||
|
||||
Sort forum posts by creation time (from most recent to oldest).
|
||||
|
||||
.. class:: SelectDefaultValueType
|
||||
|
||||
Represents the default value of a select menu.
|
||||
|
||||
.. versionadded:: 2.4
|
||||
|
||||
.. attribute:: user
|
||||
|
||||
The underlying type of the ID is a user.
|
||||
|
||||
.. attribute:: role
|
||||
|
||||
The underlying type of the ID is a role.
|
||||
|
||||
.. attribute:: channel
|
||||
|
||||
The underlying type of the ID is a channel or thread.
|
||||
|
||||
|
||||
.. _discord-api-audit-logs:
|
||||
|
||||
|
@ -166,6 +166,14 @@ SelectOption
|
||||
.. autoclass:: SelectOption
|
||||
:members:
|
||||
|
||||
SelectDefaultValue
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: SelectDefaultValue
|
||||
|
||||
.. autoclass:: SelectDefaultValue
|
||||
:members:
|
||||
|
||||
Choice
|
||||
~~~~~~~
|
||||
|
||||
|
Reference in New Issue
Block a user