Add support for default_values field on selects

This commit is contained in:
Soheab_
2023-09-29 21:55:20 +02:00
committed by GitHub
parent 9f8f9bf56b
commit c5ecc42c72
6 changed files with 342 additions and 7 deletions

View File

@ -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:

View File

@ -166,6 +166,14 @@ SelectOption
.. autoclass:: SelectOption
:members:
SelectDefaultValue
~~~~~~~~~~~~~~~~~~~
.. attributetable:: SelectDefaultValue
.. autoclass:: SelectDefaultValue
:members:
Choice
~~~~~~~