We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ctx
1 parent 72ba1b1 commit 3d07d90Copy full SHA for 3d07d90
discord/commands/options.py
@@ -45,6 +45,7 @@
45
from ..utils import MISSING, basic_autocomplete
46
47
if TYPE_CHECKING:
48
+ from ..commands import ApplicationContext
49
from ..ext.commands import Converter
50
from ..member import Member
51
from ..message import Attachment
@@ -227,6 +228,13 @@ def __init__(
227
228
else:
229
230
231
+ if isinstance(input_type, tuple) and any(
232
+ issubclass(op, ApplicationContext) for op in input_type
233
+ ):
234
+ input_type = next(
235
+ op for op in input_type if issubclass(op, ApplicationContext)
236
+ )
237
+
238
if (
239
isinstance(input_type, Converter)
240
or input_type_is_class
0 commit comments