mirror of
https://github.com/discordjs/discord.js.git
synced 2026-05-30 07:30:09 +00:00
46 lines
845 B
JavaScript
46 lines
845 B
JavaScript
const GuildChannel = require('./GuildChannel');
|
|
const TextBasedChannel = require('./interface/TextBasedChannel');
|
|
const Collection = require('../util/Collection');
|
|
|
|
/**
|
|
* Represents a Server Text Channel on Discord.
|
|
* @extends {GuildChannel}
|
|
* @implements {TextBasedChannel}
|
|
*/
|
|
class TextChannel extends GuildChannel {
|
|
|
|
constructor(guild, data) {
|
|
super(guild, data);
|
|
this.messages = new Collection();
|
|
}
|
|
|
|
setup(data) {
|
|
super.setup(data);
|
|
/**
|
|
* The ID of the last message in the channel, if one was sent.
|
|
* @type {?String}
|
|
*/
|
|
this.lastMessageID = data.last_message_id;
|
|
}
|
|
|
|
sendMessage() {
|
|
return;
|
|
}
|
|
|
|
sendTTSMessage() {
|
|
return;
|
|
}
|
|
|
|
_cacheMessage() {
|
|
return;
|
|
}
|
|
|
|
getMessages() {
|
|
return;
|
|
}
|
|
}
|
|
|
|
TextBasedChannel.applyToClass(TextChannel, true);
|
|
|
|
module.exports = TextChannel;
|