mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
[commands] Automatically unload top level app commands in extensions
This commit is contained in:
@ -572,6 +572,10 @@ def _bytes_to_base64_data(data: bytes) -> str:
|
||||
return fmt.format(mime=mime, data=b64)
|
||||
|
||||
|
||||
def _is_submodule(parent: str, child: str) -> bool:
|
||||
return parent == child or child.startswith(parent + '.')
|
||||
|
||||
|
||||
if HAS_ORJSON:
|
||||
|
||||
def _to_json(obj: Any) -> str: # type: ignore
|
||||
|
Reference in New Issue
Block a user