From f63f9f638251e843a68a6abc80295a951bb16602 Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Tue, 20 May 2025 19:33:52 +0200 Subject: [PATCH] chore: Consistency on types --- discord/types/components.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/types/components.py b/discord/types/components.py index bb241c9ac..a458a1d96 100644 --- a/discord/types/components.py +++ b/discord/types/components.py @@ -34,7 +34,7 @@ ComponentType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17] ButtonStyle = Literal[1, 2, 3, 4, 5, 6] TextStyle = Literal[1, 2] DefaultValueType = Literal["user", "role", "channel"] -DividerSize = Literal[1, 2] +SeparatorSize = Literal[1, 2] MediaItemLoadingState = Literal[0, 1, 2, 3] @@ -128,7 +128,7 @@ class SelectMenu(SelectComponent): class SectionComponent(ComponentBase): type: Literal[9] components: List[Union[TextComponent, ButtonComponent]] - accessory: ComponentBase + accessory: Component class TextComponent(ComponentBase): @@ -174,7 +174,7 @@ class FileComponent(ComponentBase): class SeparatorComponent(ComponentBase): type: Literal[14] divider: NotRequired[bool] - spacing: NotRequired[DividerSize] + spacing: NotRequired[SeparatorSize] class ContainerComponent(ComponentBase):