mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Add channel.type
This commit is contained in:
@@ -13,7 +13,15 @@ class Channel {
|
||||
if (guild) {
|
||||
this.guild = guild;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of the channel, either:
|
||||
* * `dm` - a DM channel
|
||||
* * `group` - a Group DM channel
|
||||
* * `text` - a guild text channel
|
||||
* * `voice` - a guild voice channel
|
||||
* @type {String}
|
||||
*/
|
||||
this.type = null;
|
||||
if (data) {
|
||||
this.setup(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user