Fix an issue with alias quote detection (#6582)

Co-authored-by: Michael Oliveira <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
TrustyJAID 2025-08-09 14:55:37 -06:00 committed by GitHub
parent 029029e9a5
commit b177c80b4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,11 @@ class AliasEntry:
extra = []
while not view.eof:
prev = view.index
word = view.get_quoted_word()
try:
word = view.get_quoted_word()
except discord.ext.commands.errors.UnexpectedQuoteError:
view.skip_ws()
continue
if len(word) < view.index - prev:
word = "".join((view.buffer[prev], word, view.buffer[view.index - 1]))
extra.append(word.strip(" "))