mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-09-21 03:27:42 +00:00
Document which components need to be in a Label
This commit is contained in:
@@ -59,7 +59,7 @@ V = TypeVar('V', bound='BaseView', covariant=True)
|
||||
|
||||
|
||||
class CheckboxGroup(Item[V]):
|
||||
"""Represents a checkbox group component within a modal.
|
||||
"""Represents a checkbox group component within a modal that can only be used in :class:`Label`.
|
||||
|
||||
.. versionadded:: 2.7
|
||||
|
||||
@@ -281,7 +281,7 @@ class CheckboxGroup(Item[V]):
|
||||
|
||||
|
||||
class Checkbox(Item[V]):
|
||||
"""Represents a checkbox component within a modal.
|
||||
"""Represents a checkbox component within a modal that can only be used in :class:`Label`.
|
||||
|
||||
.. versionadded:: 2.7
|
||||
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ V = TypeVar('V', bound='BaseView', covariant=True)
|
||||
|
||||
|
||||
class RadioGroup(Item[V]):
|
||||
"""Represents a radio group component within a modal.
|
||||
"""Represents a radio group component within a modal that can only be used in :class:`Label`.
|
||||
|
||||
.. versionadded:: 2.7
|
||||
|
||||
|
||||
Reference in New Issue
Block a user