mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
70 lines
1.1 KiB
JavaScript
70 lines
1.1 KiB
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;
|
|
this.type = 'text';
|
|
}
|
|
|
|
sendMessage() {
|
|
return;
|
|
}
|
|
|
|
sendTTSMessage() {
|
|
return;
|
|
}
|
|
|
|
sendFile() {
|
|
return;
|
|
}
|
|
|
|
_cacheMessage() {
|
|
return;
|
|
}
|
|
|
|
fetchMessages() {
|
|
return;
|
|
}
|
|
|
|
bulkDelete() {
|
|
return;
|
|
}
|
|
|
|
setTyping() {
|
|
return;
|
|
}
|
|
|
|
fetchPinnedMessages() {
|
|
return;
|
|
}
|
|
|
|
createCollector() {
|
|
return;
|
|
}
|
|
|
|
awaitMessages() {
|
|
return;
|
|
}
|
|
}
|
|
|
|
TextBasedChannel.applyToClass(TextChannel, true);
|
|
|
|
module.exports = TextChannel;
|