File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -227,22 +227,6 @@ def create_select(
227227 "disabled" : disabled ,
228228 }
229229
230- def create_context_menu (
231- name : str ,
232- _type : typing .Optional [ContextMenuType ]= 1
233- ):
234- """
235- Creates a context menu option. By default, ``_type`` will always be `CHAT_INPUT`.
236-
237- :param name: The name of the context menu. Must not share with `description`.
238- :type name: str
239- :param _type: The context menu type.
240- :type _type: typing.Optional[ContextMenuType]
241- """
242- if len (name ) > 100 :
243- raise IncorrectFormat ("Context menu name length cannot be higher than 100 characters." )
244- return {"name" : name , "type" : _type }
245-
246230def get_components_ids (component : typing .Union [str , dict , list ]) -> typing .Iterator [str ]:
247231 """
248232 Returns generator with the ``custom_id`` of a component or list of components.
You can’t perform that action at this time.
0 commit comments