File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -901,3 +901,12 @@ def __init__(self, **kwargs):
901901
902902 if self .footer :
903903 self ._json .update ({"footer" : self .footer ._json })
904+
905+ if self .video :
906+ self ._json .update ({"video" : self .video ._json })
907+
908+ if self .image :
909+ self ._json .update ({"image" : self .image ._json })
910+
911+ if self .thumbnail :
912+ self ._json .update ({"thumbnail" : self .thumbnail ._json })
Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ def __init__(self, **kwargs) -> None:
140140 self .type = ComponentType .BUTTON
141141 self .style = ButtonStyle (self .style )
142142 self ._json .update ({"type" : self .type .value , "style" : self .style .value })
143+ if self .emoji :
144+ self ._json .update ({"emoji" : self .emoji ._json })
143145
144146
145147class Component (DictSerializerMixin ):
You can’t perform that action at this time.
0 commit comments