Move and document GuildChannel.guild (#613)

This commit is contained in:
Schuyler Cebulskie
2016-09-06 16:45:09 -04:00
committed by GitHub
parent 943767dc83
commit 910f47240d
3 changed files with 8 additions and 4 deletions

View File

@@ -12,7 +12,12 @@ const arraysEqual = require('../util/ArraysEqual');
*/
class GuildChannel extends Channel {
constructor(guild, data) {
super(guild.client, data, guild);
super(guild.client, data);
/**
* The guild the channel is in
* @type {Guild}
*/
this.guild = guild;
}
setup(data) {