Update ThreadChannel.js
This commit is contained in:
parent
02fcfb881f
commit
08e06a3a42
@ -3,7 +3,6 @@
|
|||||||
const { Channel } = require('./Channel');
|
const { Channel } = require('./Channel');
|
||||||
const TextBasedChannel = require('./interfaces/TextBasedChannel');
|
const TextBasedChannel = require('./interfaces/TextBasedChannel');
|
||||||
const { RangeError } = require('../errors');
|
const { RangeError } = require('../errors');
|
||||||
const InteractionManager = require('../managers/InteractionManager');
|
|
||||||
const MessageManager = require('../managers/MessageManager');
|
const MessageManager = require('../managers/MessageManager');
|
||||||
const ThreadMemberManager = require('../managers/ThreadMemberManager');
|
const ThreadMemberManager = require('../managers/ThreadMemberManager');
|
||||||
const ChannelFlags = require('../util/ChannelFlags');
|
const ChannelFlags = require('../util/ChannelFlags');
|
||||||
@ -42,24 +41,9 @@ class ThreadChannel extends Channel {
|
|||||||
* @type {ThreadMemberManager}
|
* @type {ThreadMemberManager}
|
||||||
*/
|
*/
|
||||||
this.members = new ThreadMemberManager(this);
|
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);
|
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) {
|
_patch(data, partial = false) {
|
||||||
super._patch(data);
|
super._patch(data);
|
||||||
|
|
||||||
@ -614,9 +598,6 @@ class ThreadChannel extends Channel {
|
|||||||
sendTyping() {}
|
sendTyping() {}
|
||||||
createMessageCollector() {}
|
createMessageCollector() {}
|
||||||
awaitMessages() {}
|
awaitMessages() {}
|
||||||
createMessageComponentCollector() {}
|
|
||||||
awaitMessageComponent() {}
|
|
||||||
bulkDelete() {}
|
|
||||||
// Doesn't work on Thread channels; setRateLimitPerUser() {}
|
// Doesn't work on Thread channels; setRateLimitPerUser() {}
|
||||||
// Doesn't work on Thread channels; setNSFW() {}
|
// Doesn't work on Thread channels; setNSFW() {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user