mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-23 19:34:23 +00:00
Fix CommandTree removal and getter overloads
This commit is contained in:
parent
f015b59e43
commit
20aa6f866d
@ -321,7 +321,7 @@ class CommandTree(Generic[ClientT]):
|
|||||||
/,
|
/,
|
||||||
*,
|
*,
|
||||||
guild: Optional[Snowflake] = ...,
|
guild: Optional[Snowflake] = ...,
|
||||||
type: Literal[AppCommandType.message, AppCommandType.user] = ...,
|
type: Literal[AppCommandType.message, AppCommandType.user],
|
||||||
) -> Optional[ContextMenu]:
|
) -> Optional[ContextMenu]:
|
||||||
...
|
...
|
||||||
|
|
||||||
@ -343,7 +343,7 @@ class CommandTree(Generic[ClientT]):
|
|||||||
/,
|
/,
|
||||||
*,
|
*,
|
||||||
guild: Optional[Snowflake] = ...,
|
guild: Optional[Snowflake] = ...,
|
||||||
type: AppCommandType = ...,
|
type: AppCommandType,
|
||||||
) -> Optional[Union[Command[Any, ..., Any], ContextMenu, Group]]:
|
) -> Optional[Union[Command[Any, ..., Any], ContextMenu, Group]]:
|
||||||
...
|
...
|
||||||
|
|
||||||
@ -400,7 +400,7 @@ class CommandTree(Generic[ClientT]):
|
|||||||
/,
|
/,
|
||||||
*,
|
*,
|
||||||
guild: Optional[Snowflake] = ...,
|
guild: Optional[Snowflake] = ...,
|
||||||
type: Literal[AppCommandType.message, AppCommandType.user] = ...,
|
type: Literal[AppCommandType.message, AppCommandType.user],
|
||||||
) -> Optional[ContextMenu]:
|
) -> Optional[ContextMenu]:
|
||||||
...
|
...
|
||||||
|
|
||||||
@ -422,7 +422,7 @@ class CommandTree(Generic[ClientT]):
|
|||||||
/,
|
/,
|
||||||
*,
|
*,
|
||||||
guild: Optional[Snowflake] = ...,
|
guild: Optional[Snowflake] = ...,
|
||||||
type: AppCommandType = ...,
|
type: AppCommandType,
|
||||||
) -> Optional[Union[Command[Any, ..., Any], ContextMenu, Group]]:
|
) -> Optional[Union[Command[Any, ..., Any], ContextMenu, Group]]:
|
||||||
...
|
...
|
||||||
|
|
||||||
@ -474,7 +474,7 @@ class CommandTree(Generic[ClientT]):
|
|||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
guild: Optional[Snowflake] = ...,
|
guild: Optional[Snowflake] = ...,
|
||||||
type: Literal[AppCommandType.message, AppCommandType.user] = ...,
|
type: Literal[AppCommandType.message, AppCommandType.user],
|
||||||
) -> List[ContextMenu]:
|
) -> List[ContextMenu]:
|
||||||
...
|
...
|
||||||
|
|
||||||
@ -492,7 +492,7 @@ class CommandTree(Generic[ClientT]):
|
|||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
guild: Optional[Snowflake] = ...,
|
guild: Optional[Snowflake] = ...,
|
||||||
type: AppCommandType = ...,
|
type: AppCommandType,
|
||||||
) -> Union[List[Union[Command[Any, ..., Any], Group]], List[ContextMenu]]:
|
) -> Union[List[Union[Command[Any, ..., Any], Group]], List[ContextMenu]]:
|
||||||
...
|
...
|
||||||
|
|
||||||
@ -539,7 +539,7 @@ class CommandTree(Generic[ClientT]):
|
|||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
guild: Optional[Snowflake] = ...,
|
guild: Optional[Snowflake] = ...,
|
||||||
type: Literal[AppCommandType.message, AppCommandType.user] = ...,
|
type: Literal[AppCommandType.message, AppCommandType.user],
|
||||||
) -> Generator[ContextMenu, None, None]:
|
) -> Generator[ContextMenu, None, None]:
|
||||||
...
|
...
|
||||||
|
|
||||||
@ -557,7 +557,7 @@ class CommandTree(Generic[ClientT]):
|
|||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
guild: Optional[Snowflake] = ...,
|
guild: Optional[Snowflake] = ...,
|
||||||
type: AppCommandType = ...,
|
type: AppCommandType,
|
||||||
) -> Union[Generator[Union[Command[Any, ..., Any], Group], None, None], Generator[ContextMenu, None, None]]:
|
) -> Union[Generator[Union[Command[Any, ..., Any], Group], None, None], Generator[ContextMenu, None, None]]:
|
||||||
...
|
...
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user