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.
1 parent 8fea298 commit 1e59007Copy full SHA for 1e59007
discord/ext/bridge/core.py
@@ -632,6 +632,16 @@ class BridgeOption(Option, Converter):
632
command option and a prefixed command argument for bridge commands.
633
"""
634
635
+ def __init__(self, input_type, *args, **kwargs):
636
+ self.converter = kwargs.pop("converter", None)
637
+ super().__init__(input_type, *args, **kwargs)
638
+
639
+ if self.converter is None:
640
+ if input_type == discord.Member:
641
+ self.converter = MemberConverter()
642
+ else:
643
+ self.converter = BRIDGE_CONVERTER_MAPPING.get(input_type)
644
645
async def convert(self, ctx, argument: str) -> Any:
646
try:
647
if self.converter is not None:
0 commit comments