Allow earlier commit to actually work as intended

This commit is contained in:
nolan 2021-06-21 12:55:59 -07:00
parent d5d10591fa
commit 0d00855d8c

View File

@ -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) {