mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Fixed PermissionOverwrites
This commit is contained in:
@@ -13,6 +13,7 @@ var User = require("./User.js");
|
||||
var Member = require("./Member.js");
|
||||
var TextChannel = require("./TextChannel.js");
|
||||
var VoiceChannel = require("./VoiceChannel.js");
|
||||
var Role = require("./Role.js");
|
||||
|
||||
var Server = (function (_Equality) {
|
||||
_inherits(Server, _Equality);
|
||||
@@ -44,7 +45,6 @@ var Server = (function (_Equality) {
|
||||
});
|
||||
|
||||
data.channels.forEach(function (dataChannel) {
|
||||
|
||||
if (dataChannel.type === "text") {
|
||||
var channel = client.internal.channels.add(new TextChannel(dataChannel, client));
|
||||
_this.channels.add(channel);
|
||||
@@ -53,6 +53,10 @@ var Server = (function (_Equality) {
|
||||
_this.channels.add(channel);
|
||||
}
|
||||
});
|
||||
|
||||
data.roles.forEach(function (dataRole) {
|
||||
_this.roles.add(new Role(dataRole, _this));
|
||||
});
|
||||
}
|
||||
|
||||
Server.prototype.toString = function toString() {
|
||||
|
||||
Reference in New Issue
Block a user