mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Move and document GuildChannel.guild (#613)
This commit is contained in:
committed by
GitHub
parent
943767dc83
commit
910f47240d
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) {
|
||||
|
||||
Reference in New Issue
Block a user