mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Add channel.type
This commit is contained in:
@@ -31,13 +31,6 @@ class GuildChannel extends Channel {
|
||||
|
||||
setup(data) {
|
||||
super.setup(data);
|
||||
/**
|
||||
* The type of the Guild Channel
|
||||
* @type {String}
|
||||
*/
|
||||
if (data.type === 0) this.type = 'text';
|
||||
else if (data.type === 2) this.type = 'voice';
|
||||
else this.type = data.type.toString();
|
||||
/**
|
||||
* The topic of the Guild Channel, if there is one.
|
||||
* @type {?String}
|
||||
|
||||
Reference in New Issue
Block a user