Update ThreadChannel.js

This commit is contained in:
Elysia 2024-01-09 20:18:41 +07:00
parent 02fcfb881f
commit 08e06a3a42

View File

@ -3,7 +3,6 @@
const { Channel } = require('./Channel');
const TextBasedChannel = require('./interfaces/TextBasedChannel');
const { RangeError } = require('../errors');
const InteractionManager = require('../managers/InteractionManager');
const MessageManager = require('../managers/MessageManager');
const ThreadMemberManager = require('../managers/ThreadMemberManager');
const ChannelFlags = require('../util/ChannelFlags');
@ -42,24 +41,9 @@ class ThreadChannel extends Channel {
* @type {ThreadMemberManager}
*/
this.members = new ThreadMemberManager(this);
/**
* A manager of the interactions sent to this channel
* @type {InteractionManager}
*/
this.interactions = new InteractionManager(this);
if (data) this._patch(data);
}
/**
* First message in the thread
* @type {?Message}
* @readonly
*/
get firstMessage() {
return this.messages.cache.get(this.id);
}
_patch(data, partial = false) {
super._patch(data);
@ -614,9 +598,6 @@ class ThreadChannel extends Channel {
sendTyping() {}
createMessageCollector() {}
awaitMessages() {}
createMessageComponentCollector() {}
awaitMessageComponent() {}
bulkDelete() {}
// Doesn't work on Thread channels; setRateLimitPerUser() {}
// Doesn't work on Thread channels; setNSFW() {}
}