Skip to content

Commit

Permalink
Add channel types to thread channel classes
Browse files Browse the repository at this point in the history
  • Loading branch information
bsian03 committed Aug 17, 2021
1 parent 6fcfcc7 commit a3b0fea
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2427,7 +2427,9 @@ declare namespace Eris {
getPins(): Promise<Message<NewsChannel>[]>;
}

export class NewsThreadChannel extends ThreadChannel {}
export class NewsThreadChannel extends ThreadChannel {
type: 10;
}

export class Permission extends Base {
allow: bigint;
Expand Down Expand Up @@ -2492,9 +2494,13 @@ declare namespace Eris {
unsendMessage(messageID: string): Promise<void>;
}

export class PrivateThreadChannel extends ThreadChannel {}
export class PrivateThreadChannel extends ThreadChannel {
type: 12;
}

export class PublicThreadChannel extends ThreadChannel {}
export class PublicThreadChannel extends ThreadChannel {
type: 11;
}

export class Relationship extends Base implements Omit<Presence, "activities"> {
activities: Activity[] | null;
Expand Down Expand Up @@ -2729,6 +2735,7 @@ declare namespace Eris {
ownerID: string;
rateLimitPerUser: number;
threadMetadata: ThreadMetadata;
type: 10 | 11 | 12;
constructor(data: BaseData, client: Client, messageLimit?: number);
getMembers(): Promise<ThreadMember[]>;
join(userID?: string): Promise<void>;
Expand Down

0 comments on commit a3b0fea

Please sign in to comment.