Skip to content

Commit b099bcd

Browse files
authored
Remove unnecessary context creation method
1 parent 77f2b40 commit b099bcd

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

discord_slash/utils/manage_components.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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-
246230
def 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.

0 commit comments

Comments
 (0)