mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Move and document GuildChannel.guild (#613)
This commit is contained in:
parent
943767dc83
commit
910f47240d
3 changed files with 8 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
|
@ -2,7 +2,7 @@
|
|||
* Represents any Channel on Discord
|
||||
*/
|
||||
class Channel {
|
||||
constructor(client, data, guild) {
|
||||
constructor(client, data) {
|
||||
/**
|
||||
* The client that instantiated the Channel
|
||||
* @type {Client}
|
||||
|
|
@ -10,7 +10,6 @@ class Channel {
|
|||
this.client = client;
|
||||
this.typingMap = {};
|
||||
this.typingTimeouts = [];
|
||||
if (guild) this.guild = guild;
|
||||
/**
|
||||
* The type of the channel, either:
|
||||
* * `dm` - a DM channel
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue