This commit is contained in:
Erik 2020-09-28 01:34:15 +03:00
parent 4f286e94ba
commit a915d79113

View File

@ -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;