From a915d7911318ae32be489da6cd81f501bcaf5564 Mon Sep 17 00:00:00 2001 From: Navy Date: Mon, 28 Sep 2020 01:34:15 +0300 Subject: [PATCH] bugfix --- structure/client/Resolver.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/structure/client/Resolver.js b/structure/client/Resolver.js index 755b95c..67d8cde 100644 --- a/structure/client/Resolver.js +++ b/structure/client/Resolver.js @@ -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;