@@ -106,7 +106,8 @@ class Component:
106106 type: :class:`ComponentType`
107107 The type of component.
108108 id: :class:`int`
109- The component's ID. If not provided by the user, it is automatically incremented.
109+ The component's ID. If not provided by the user, it is set sequentially by Discord.
110+ The ID `0` is treated as if no ID was provided.
110111 """
111112
112113 __slots__ : tuple [str , ...] = ("type" , "id" )
@@ -170,7 +171,7 @@ def __init__(self, data: ComponentPayload):
170171
171172 @property
172173 def width (self ):
173- """Return the total item width that this action row uses ."""
174+ """Return the sum of the children's widths ."""
174175 t = 0
175176 for item in self .children :
176177 t += 1 if item .type is ComponentType .button else 5
@@ -572,7 +573,7 @@ def to_dict(self) -> SelectOptionPayload:
572573class Section (Component ):
573574 """Represents a Section from Components V2.
574575
575- This is a component that groups other components together.
576+ This is a component that groups other components together with an additional component to the right as the accessory .
576577
577578 This inherits from :class:`Component`.
578579
@@ -688,7 +689,7 @@ def from_dict(cls, data: UnfurledMediaItemPayload, state=None) -> UnfurledMediaI
688689 r ._state = state
689690 return r
690691
691- def to_dict (self ):
692+ def to_dict (self ) -> dict [ str , str ] :
692693 return {"url" : self .url }
693694
694695
@@ -708,7 +709,7 @@ class Thumbnail(Component):
708709 description: Optional[:class:`str`]
709710 The thumbnail's description, up to 1024 characters.
710711 spoiler: Optional[:class:`bool`]
711- Whether the thumbnail is a spoiler.
712+ Whether the thumbnail has the spoiler overlay .
712713 """
713714
714715 __slots__ : tuple [str , ...] = (
@@ -853,7 +854,7 @@ class FileComponent(Component):
853854 size: :class:`int`
854855 The file's size in bytes.
855856 spoiler: Optional[:class:`bool`]
856- Whether the file is a spoiler.
857+ Whether the file has the spoiler overlay .
857858 """
858859
859860 __slots__ : tuple [str , ...] = (
@@ -886,7 +887,7 @@ def to_dict(self) -> FileComponentPayload:
886887class Separator (Component ):
887888 """Represents a Separator from Components V2.
888889
889- This is a component that separates other components.
890+ This is a component that visually separates components.
890891
891892 This inherits from :class:`Component`.
892893
@@ -895,7 +896,7 @@ class Separator(Component):
895896 Attributes
896897 ----------
897898 divider: :class:`bool`
898- Whether the separator is a divider (provide example?)
899+ Whether the separator will show a horizontal line in addition to vertical spacing.
899900 spacing: Optional[:class:`SeparatorSpacingSize`]
900901 The separator's spacing size.
901902 """
@@ -937,8 +938,12 @@ class Container(Component):
937938
938939 Attributes
939940 ----------
940- items: List[:class:`MediaGalleryItem`]
941- The media this gallery contains.
941+ components: List[:class:`Component`]
942+ The components contained in this container.
943+ accent_color: Optional[:class:`Colour`]
944+ The accent color of the container.
945+ spoiler: Optional[:class:`bool`]
946+ Whether the entire container has the spoiler overlay.
942947 """
943948
944949 __slots__ : tuple [str , ...] = (
0 commit comments