mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-15 18:29:52 +00:00
Mention that rows are explicitly 0 indexed.
This commit is contained in:
parent
89d24cb0bc
commit
09f0ed1fba
@ -71,7 +71,7 @@ class Button(Item[V]):
|
|||||||
rows. By default, items are arranged automatically into those 5 rows. If you'd
|
rows. By default, items are arranged automatically into those 5 rows. If you'd
|
||||||
like to control the relative positioning of the row then passing an index is advised.
|
like to control the relative positioning of the row then passing an index is advised.
|
||||||
For example, row=1 will show up before row=2. Defaults to ``None``, which is automatic
|
For example, row=1 will show up before row=2. Defaults to ``None``, which is automatic
|
||||||
ordering. The row number cannot be negative or greater than 5.
|
ordering. The row number must be between 0 and 4 (i.e. zero indexed).
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__item_repr_attributes__: Tuple[str, ...] = (
|
__item_repr_attributes__: Tuple[str, ...] = (
|
||||||
@ -253,7 +253,7 @@ def button(
|
|||||||
rows. By default, items are arranged automatically into those 5 rows. If you'd
|
rows. By default, items are arranged automatically into those 5 rows. If you'd
|
||||||
like to control the relative positioning of the row then passing an index is advised.
|
like to control the relative positioning of the row then passing an index is advised.
|
||||||
For example, row=1 will show up before row=2. Defaults to ``None``, which is automatic
|
For example, row=1 will show up before row=2. Defaults to ``None``, which is automatic
|
||||||
ordering. The row number cannot be negative or greater than 5.
|
ordering. The row number must be between 0 and 4 (i.e. zero indexed).
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def decorator(func: ItemCallbackType) -> ItemCallbackType:
|
def decorator(func: ItemCallbackType) -> ItemCallbackType:
|
||||||
|
@ -80,7 +80,7 @@ class Select(Item[V]):
|
|||||||
rows. By default, items are arranged automatically into those 5 rows. If you'd
|
rows. By default, items are arranged automatically into those 5 rows. If you'd
|
||||||
like to control the relative positioning of the row then passing an index is advised.
|
like to control the relative positioning of the row then passing an index is advised.
|
||||||
For example, row=1 will show up before row=2. Defaults to ``None``, which is automatic
|
For example, row=1 will show up before row=2. Defaults to ``None``, which is automatic
|
||||||
ordering. The row number cannot be negative or greater than 5.
|
ordering. The row number must be between 0 and 4 (i.e. zero indexed).
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__item_repr_attributes__: Tuple[str, ...] = (
|
__item_repr_attributes__: Tuple[str, ...] = (
|
||||||
@ -305,7 +305,7 @@ def select(
|
|||||||
rows. By default, items are arranged automatically into those 5 rows. If you'd
|
rows. By default, items are arranged automatically into those 5 rows. If you'd
|
||||||
like to control the relative positioning of the row then passing an index is advised.
|
like to control the relative positioning of the row then passing an index is advised.
|
||||||
For example, row=1 will show up before row=2. Defaults to ``None``, which is automatic
|
For example, row=1 will show up before row=2. Defaults to ``None``, which is automatic
|
||||||
ordering. The row number cannot be negative or greater than 5.
|
ordering. The row number must be between 0 and 4 (i.e. zero indexed).
|
||||||
min_values: :class:`int`
|
min_values: :class:`int`
|
||||||
The minimum number of items that must be chosen for this select menu.
|
The minimum number of items that must be chosen for this select menu.
|
||||||
Defaults to 1 and must be between 1 and 25.
|
Defaults to 1 and must be between 1 and 25.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user