mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add more undefined checks
This commit is contained in:
@@ -362,7 +362,7 @@ var Resolver = (function () {
|
||||
|
||||
var pmchat = _ref5;
|
||||
|
||||
if (pmchat.recipient.equals(resource)) {
|
||||
if (pmchat.recipients.length === 1 && pmchat.recipient && pmchat.recipient.equals(resource)) {
|
||||
return Promise.resolve(pmchat);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user