Allow earlier commit to actually work as intended
This commit is contained in:
parent
d5d10591fa
commit
0d00855d8c
@ -689,7 +689,7 @@ class Resolver {
|
||||
* @param {Guild} guild
|
||||
* @returns
|
||||
*/
|
||||
async infinite(args = [], resolvers = [], strict, guild) {
|
||||
async infinite(args = [], resolvers = [], strict, guild, opts) {
|
||||
let parsed = [], //eslint-disable-line prefer-const
|
||||
parameters = [];
|
||||
|
||||
@ -700,7 +700,7 @@ class Resolver {
|
||||
let resolved = null;
|
||||
for(const resolver of resolvers) {
|
||||
if(resolved) break;
|
||||
resolved = resolver(arg, strict, guild);
|
||||
resolved = resolver(arg, strict, guild, opts);
|
||||
if(resolved instanceof Promise) resolved = await resolved;
|
||||
}
|
||||
if(resolved) {
|
||||
|
Loading…
Reference in New Issue
Block a user