mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Fixed PM Channel bug, 3.8.2
Clients no longer crashed when receiving PM channel messages.
This commit is contained in:
@@ -11,11 +11,10 @@ class Channel {
|
||||
this.messages = [];
|
||||
this.roles = [];
|
||||
|
||||
for (var role of data.permission_overwrites) {
|
||||
|
||||
this.roles.push( new ChannelPermissions(role, this) );
|
||||
|
||||
}
|
||||
if(data.permission_overwrites)
|
||||
for (var role of data.permission_overwrites) {
|
||||
this.roles.push( new ChannelPermissions(role, this) );
|
||||
}
|
||||
|
||||
//this.isPrivate = isPrivate; //not sure about the implementation of this...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user