Move MissingApplicationID to top-level discord namespace

This commit is contained in:
Rapptz
2024-08-31 08:51:56 -04:00
parent 66d74054dd
commit df4b1c88df
8 changed files with 39 additions and 26 deletions

View File

@ -84,4 +84,10 @@ version_info: VersionInfo = VersionInfo(major=2, minor=5, micro=0, releaselevel=
logging.getLogger(__name__).addHandler(logging.NullHandler())
# This is a backwards compatibility hack and should be removed in v3
# Essentially forcing the exception to have different base classes
# In the future, this should only inherit from ClientException
if len(MissingApplicationID.__bases__) == 1:
MissingApplicationID.__bases__ = (app_commands.AppCommandError, ClientException)
del logging, NamedTuple, Literal, VersionInfo