users arg type
This commit is contained in:
parent
937b787937
commit
7dc8cab0ee
@ -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) => {
|
||||
|
||||
// },
|
||||
|
Loading…
Reference in New Issue
Block a user