mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
More bug fixes
This commit is contained in:
@@ -10,7 +10,8 @@ var Channel = (function () {
|
||||
function Channel(data, server) {
|
||||
_classCallCheck(this, Channel);
|
||||
|
||||
this.server = server;
|
||||
this.serverID = server.id;
|
||||
this.client = server.client;
|
||||
this.name = data.name;
|
||||
this.type = data.type;
|
||||
this.topic = data.topic;
|
||||
@@ -93,6 +94,11 @@ var Channel = (function () {
|
||||
};
|
||||
|
||||
_createClass(Channel, [{
|
||||
key: "server",
|
||||
get: function get() {
|
||||
return this.client.getServer("id", this.serverID);
|
||||
}
|
||||
}, {
|
||||
key: "permissionOverwrites",
|
||||
get: function get() {
|
||||
return this.roles;
|
||||
@@ -102,11 +108,6 @@ var Channel = (function () {
|
||||
get: function get() {
|
||||
return this.roles;
|
||||
}
|
||||
}, {
|
||||
key: "client",
|
||||
get: function get() {
|
||||
return this.server.client;
|
||||
}
|
||||
}, {
|
||||
key: "isPrivate",
|
||||
get: function get() {
|
||||
|
||||
Reference in New Issue
Block a user