bugfix
This commit is contained in:
parent
4f286e94ba
commit
a915d79113
@ -249,10 +249,10 @@ class Resolver {
|
||||
const failed = [];
|
||||
for (let elem of rest) {
|
||||
if (resolver) {
|
||||
const [_resolved] = await resolver(elem, false, guild);
|
||||
const _resolved = await resolver(elem, false, guild);
|
||||
if (_resolved) {
|
||||
if (!resolved.includes(_resolved)) resolved.push(_resolved);
|
||||
if (_resolved.id) elem = _resolved.id;
|
||||
if (!resolved.includes(_resolved[0])) resolved.push(_resolved[0]);
|
||||
if (_resolved[0].id) elem = _resolved[0].id;
|
||||
} else {
|
||||
failed.push(elem);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user