Browse Source

[commands] Skip ws before processing arguments in Greedy transformer

pull/7890/head
Rapptz 3 years ago
parent
commit
80aa45ed31
  1. 1
      discord/ext/commands/hybrid.py

1
discord/ext/commands/hybrid.py

@ -144,6 +144,7 @@ def make_greedy_transformer(converter: Any, parameter: Parameter) -> Type[app_co
view = StringView(value)
result = []
while True:
view.skip_ws()
arg = view.get_quoted_word()
if arg is None:
break

Loading…
Cancel
Save