mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43: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:
@@ -163,7 +163,7 @@ class Resolver {
|
||||
if (found)
|
||||
resolve(found);
|
||||
else
|
||||
reject();
|
||||
reject(new Error("not found anything"));
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user