[commands] Automatically unload top level app commands in extensions

This commit is contained in:
Rapptz
2022-03-12 09:24:26 -05:00
parent a672455ca9
commit 0ef369c0fa
5 changed files with 55 additions and 7 deletions

View File

@ -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