diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index a4b9b3b7d..c5ed0413c 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -1140,6 +1140,9 @@ class Greedy(List[T]): converter = getattr(self.converter, '__name__', repr(self.converter)) return f'Greedy[{converter}]' + def __or__(self, value: Any) -> Any: + return Union[self, value] + def __class_getitem__(cls, params: Union[Tuple[T], T]) -> Greedy[T]: if not isinstance(params, tuple): params = (params,)