Skip to content

Commit 0530aab

Browse files
authored
feat: expand community fields (#613)
1 parent 7d6eda8 commit 0530aab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/types/v2/community.v2.types.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
export type CommunityJoinPolicy =
2+
| 'Open'
3+
| 'RestrictedJoinRequestsDisabled'
4+
| 'RestrictedJoinRequestsRequireAdminApproval'
5+
| 'RestrictedJoinRequestsRequireModeratorApproval'
6+
| 'SuperFollowRequired';
7+
18
export interface CommunityV2 {
29
id: string;
310
name: string;
411
created_at: string;
12+
description?: string;
13+
access?: 'Public' | 'Closed';
14+
join_policy?: CommunityJoinPolicy;
15+
member_count?: number;
516
}
617

718
export interface CommunityErrorV2 {

0 commit comments

Comments
 (0)