mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
24 lines
382 B
JavaScript
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;
|