Update ChannelManager.js
This commit is contained in:
@@ -128,7 +128,7 @@ class ChannelManager extends CachedManager {
|
||||
recipients = recipients
|
||||
.map(r => this.client.users.resolveId(r))
|
||||
.filter(r => r && this.client.relationships.cache.get(r) == RelationshipTypes.FRIEND);
|
||||
if (recipients.length > 9) throw new Error('Invalid Users length (max=9)');
|
||||
if (recipients.length < 1 || recipients.length > 9) throw new Error('Invalid Users length (max=9)');
|
||||
const data = await this.client.api.users['@me'].channels.post({
|
||||
data: { recipients },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user