users arg type

This commit is contained in:
Erik 2022-04-05 22:43:31 +03:00
parent 937b787937
commit 7dc8cab0ee
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -204,9 +204,12 @@ class CommandHandler extends Observer {
if (!members.length) return { error: true }; if (!members.length) return { error: true };
return { value: members }; 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) => { // CHANNELS: (string) => {
// }, // },