Using multiple types in args.repeat()
Is it possible to use multiple types in
args.repeat()
?
For example like this:
const membersAndRoles = args.repeat('member | role'); // parsing members and roles
And then it would parse !command @member1 @member2 @role1
and put all three into membersAndRoles
.
What would be the best way?Solution:Jump to solution
it is not. You'll have to leverage commands like
args.finished
to check if there are args left to parse and then pick them.2 Replies