mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23: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
|
* Represents any Channel on Discord
|
||||||
*/
|
*/
|
||||||
class Channel {
|
class Channel {
|
||||||
constructor(client, data, guild) {
|
constructor(client, data) {
|
||||||
/**
|
/**
|
||||||
* The client that instantiated the Channel
|
* The client that instantiated the Channel
|
||||||
* @type {Client}
|
* @type {Client}
|
||||||
@@ -10,7 +10,6 @@ class Channel {
|
|||||||
this.client = client;
|
this.client = client;
|
||||||
this.typingMap = {};
|
this.typingMap = {};
|
||||||
this.typingTimeouts = [];
|
this.typingTimeouts = [];
|
||||||
if (guild) this.guild = guild;
|
|
||||||
/**
|
/**
|
||||||
* The type of the channel, either:
|
* The type of the channel, either:
|
||||||
* * `dm` - a DM channel
|
* * `dm` - a DM channel
|
||||||
|
|||||||
@@ -12,7 +12,12 @@ const arraysEqual = require('../util/ArraysEqual');
|
|||||||
*/
|
*/
|
||||||
class GuildChannel extends Channel {
|
class GuildChannel extends Channel {
|
||||||
constructor(guild, data) {
|
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) {
|
setup(data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user