mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fixed resolver rejection for callbacks
potentially could cause some code to crash if using callbacks instead of promises
This commit is contained in:
@@ -191,7 +191,7 @@ var Resolver = (function () {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (found) resolve(found);else reject();
|
||||
if (found) resolve(found);else reject(new Error("not found anything"));
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user