From 7dc8cab0ee1087293de44e8bc5353a01d3d8852c Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 5 Apr 2022 22:43:31 +0300 Subject: [PATCH] users arg type --- src/structure/components/observers/CommandHandler.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/structure/components/observers/CommandHandler.js b/src/structure/components/observers/CommandHandler.js index ecc47db..730500e 100644 --- a/src/structure/components/observers/CommandHandler.js +++ b/src/structure/components/observers/CommandHandler.js @@ -204,9 +204,12 @@ class CommandHandler extends Observer { if (!members.length) return { error: true }; return { value: members }; }, - // USERS: (string) => { - - // }, + USERS: async (string) => { + const args = Util.parseQuotes(string).map(([str]) => str); + const users = await guild.resolveUsers(args); + if (!users.length) return { error: true }; + return { value: users }; + }, // CHANNELS: (string) => { // },