mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Move MissingApplicationID to top-level discord namespace
This commit is contained in:
1 parent
66d74054dd
commit
df4b1c88df
8 files changed
+39
-26
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user