discord.js/src/structures/Channel.js
2016-08-13 14:44:49 +01:00

24 lines
382 B
JavaScript

class Channel {
constructor(client, data, guild) {
this.client = client;
this.typingMap = {};
this.typingTimeouts = [];
if (guild) {
this.guild = guild;
}
if (data) {
this.setup(data);
}
}
setup(data) {
this.id = data.id;
}
delete() {
return this.client.rest.methods.deleteChannel(this);
}
}
module.exports = Channel;