File tree Expand file tree Collapse file tree 2 files changed +5
-18
lines changed Expand file tree Collapse file tree 2 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 6060
6161
6262class  BaseModal (ItemInterface ):
63-     """Represents a UI modal. 
64- 
65-     This object must be inherited to create a UI within Discord. 
63+     """The base class for creating pop-up modals. 
6664
6765    .. versionadded:: 2.7 
68- 
69-     Parameters 
70-     ---------- 
71-     children: :class:`ModalItem` 
72-         The initial items that are displayed in the modal. 
73-     title: :class:`str` 
74-         The title of the modal. 
75-         Must be 45 characters or fewer. 
76-     custom_id: Optional[:class:`str`] 
77-         The ID of the modal that gets received during an interaction. 
78-         Must be 100 characters or fewer. 
79-     timeout: Optional[:class:`float`] 
80-         Timeout in seconds from last interaction with the UI before no longer accepting input. 
81-         If ``None`` then there is no timeout. 
8266    """ 
8367
8468    __item_repr_attributes__ : tuple [str , ...] =  (
Original file line number Diff line number Diff line change @@ -184,7 +184,10 @@ def clear(self) -> None:
184184
185185
186186class  BaseView (ItemInterface ):
187-     """The base class for UI views used in messages.""" 
187+     """The base class for UI views used in messages. 
188+ 
189+     .. versionadded:: 2.7 
190+     """ 
188191
189192    __discord_ui_view__ : ClassVar [bool ] =  True 
190193    MAX_ITEMS : int 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments