mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Rename enums to use official API naming
This commit is contained in:
@ -222,7 +222,7 @@ def button(
|
||||
*,
|
||||
custom_id: Optional[str] = None,
|
||||
disabled: bool = False,
|
||||
style: ButtonStyle = ButtonStyle.grey,
|
||||
style: ButtonStyle = ButtonStyle.secondary,
|
||||
emoji: Optional[Union[str, PartialEmoji]] = None,
|
||||
group: Optional[int] = None,
|
||||
) -> Callable[[ItemCallbackType], ItemCallbackType]:
|
||||
|
@ -51,7 +51,7 @@ if TYPE_CHECKING:
|
||||
|
||||
def _walk_all_components(components: List[Component]) -> Iterator[Component]:
|
||||
for item in components:
|
||||
if item.type is ComponentType.group:
|
||||
if item.type is ComponentType.action_row:
|
||||
yield from item.children
|
||||
else:
|
||||
yield item
|
||||
|
Reference in New Issue
Block a user