Skip to content

Commit 8fea298

Browse files
committed
refactor(bridge): remove redundant constructor in BridgeOption
1 parent 221ac0d commit 8fea298

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

discord/ext/bridge/core.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -632,16 +632,6 @@ class BridgeOption(Option, Converter):
632632
command option and a prefixed command argument for bridge commands.
633633
"""
634634

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-
645635
async def convert(self, ctx, argument: str) -> Any:
646636
try:
647637
if self.converter is not None:

0 commit comments

Comments
 (0)