Skip to content

Commit

Permalink
Doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bsian03 committed Aug 17, 2021
1 parent 8888a27 commit 7eb457c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2673,13 +2673,14 @@ declare namespace Eris {

export class ThreadChannel extends GuildChannel {
lastMessageID: string;
member?: ThreadMember;
memberCount: number;
members: Collection<ThreadMember>;
messageCount: number;
messages: Collection<Message>;
ownerID: string;
rateLimitPerUser: number;
threadMetadata: ThreadMetadata;
member?: ThreadMember;
constructor(data: BaseData, client: Client, messageLimit?: number);
getMembers(): Promise<ThreadMember[]>;
join(userID?: string): Promise<void>;
Expand Down
12 changes: 6 additions & 6 deletions lib/structures/ThreadChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ const ThreadMember = require("./ThreadMember");
* Represents a thread channel. You also probably want to look at NewsThreadChannel, PublicThreadChannel, and PrivateThreadChannel. See GuildChannel for extra properties.
* @extends GuildChannel
* @prop {String} lastMessageID The ID of the last message in this channel
* @prop {Object?} member Thread member for the current user, if they have joined the thread
* @prop {Number} member.flags The user's thread settings
* @prop {String} member.id The ID of the thread
* @prop {Number} member.joinTimestamp The time the user last joined the thread
* @prop {String} member.userID The ID of the user
* @prop {Number} memberCount An approximate number of users in the thread (stops at 50)
* @prop {Collection<ThreadMember>} members Collection of members in this channel
* @prop {Number} messageCount An approximate number of messages in the thread (stops at 50)
* @prop {Collection<Message>} messages Collection of Messages in this channel
* @prop {Collection<ThreadMember>} members Collection of members in this channel
* @prop {String} ownerID The ID of the user that created the thread
* @prop {Number} rateLimitPerUser The ratelimit of the channel, in seconds. 0 means no ratelimit is enabled
* @prop {Object} threadMetadata Metadata for the thread
Expand All @@ -21,11 +26,6 @@ const ThreadMember = require("./ThreadMember");
* @prop {String?} threadMetadata.archiverID The ID of the user that last (un)archived the thread
* @prop {Number} threadMetadata.autoArchiveDuration Duration in minutes to automatically archive the thread after recent activity, either 60, 1440, 4320 or 10080
* @prop {Boolean?} threadMetadata.locked Whether the thread is locked
* @prop {Object?} member Thread member for the current user, if they have joined the thread
* @prop {Number} member.flags The user's thread settings
* @prop {String} member.id The ID of the thread
* @prop {Number} member.joinTimestamp The time the user last joined the thread
* @prop {String} member.userID The ID of the userx
*/
class ThreadChannel extends GuildChannel {
constructor(data, client, messageLimit) {
Expand Down

0 comments on commit 7eb457c

Please sign in to comment.