feat: thread channel

fix: ThreadManager#fetchArchived()
feat: ThreadChannel#firstMessage
todo: #486
This commit is contained in:
March 7th
2023-01-18 14:24:06 +07:00
parent 597eb2979c
commit 1e5e855ca0
3 changed files with 54 additions and 26 deletions

View File

@@ -51,6 +51,15 @@ class ThreadChannel extends Channel {
if (data) this._patch(data, fromInteraction);
}
/**
* First message in the thread
* @type {?Message}
* @readonly
*/
get firstMessage() {
return this.messages.cache.get(this.id);
}
_patch(data, partial = false) {
super._patch(data);