Skip to content

Commit 5f1f4e1

Browse files
authored
Revert "test: add community v2 endpoint coverage (#601)"
This reverts commit 64017d9.
1 parent 450e1f2 commit 5f1f4e1

File tree

3 files changed

+0
-77
lines changed

3 files changed

+0
-77
lines changed

doc/v2.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ This is a comprehensive guide of all methods available for the Twitter API v2 on
9191
- [Search spaces](#search-spaces)
9292
- [Space buyers](#space-buyers)
9393
- [Space tweets](#space-tweets)
94-
- [Communities](#communities)
95-
- [Community by id](#community-by-id)
96-
- [Search communities](#search-communities)
9794
- [Direct messages (DMs)](#direct-messages-dms)
9895
- [Fetch direct message events (without filter)](#fetch-direct-message-events-without-filter)
9996
- [Fetch direct message events by participant id](#fetch-direct-message-events-by-participant-id)
@@ -1537,34 +1534,6 @@ const { data: tweets } = await client.v2.spaceTweets('space-id')
15371534
// tweets is a TweetV2[]
15381535
```
15391536

1540-
## Communities
1541-
1542-
### Community by id
1543-
1544-
Retrieve details of a specific community.
1545-
1546-
**Method**: `.community(communityId, options?)`
1547-
1548-
**Endpoint**: `communities/:id`
1549-
1550-
**Right level**: `Read`
1551-
1552-
**Returns**: `CommunityV2Result`
1553-
1554-
### Search communities
1555-
1556-
Search for communities that match a given query.
1557-
1558-
**Method**: `.searchCommunities(query, options?)`
1559-
1560-
**Endpoint**: `communities/search`
1561-
1562-
**Right level**: `Read`
1563-
1564-
**Returns**: `CommunitiesV2Result`
1565-
1566-
The community object includes fields such as `description`, `private`, `member_count`, `moderator_count`, `subscriber_count`, `creator_id` and `rules`.
1567-
15681537
## Direct messages (DMs)
15691538

15701539
### Fetch direct message events (without filter)

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

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,7 @@
1-
export interface CommunityRuleV2 {
2-
/** Identifier of the rule. */
3-
id: string;
4-
/** Text of the rule. */
5-
text: string;
6-
/** Creation date of the rule. */
7-
created_at?: string;
8-
}
9-
101
export interface CommunityV2 {
112
id: string;
123
name: string;
13-
/** Description of the community. */
14-
description?: string;
15-
/** Identifier of the community creator. */
16-
creator_id?: string;
174
created_at: string;
18-
/** Indicates if the community is private. */
19-
private?: boolean;
20-
/** Number of members in the community. */
21-
member_count?: number;
22-
/** Number of moderators in the community. */
23-
moderator_count?: number;
24-
/** Number of subscribers of the community. */
25-
subscriber_count?: number;
26-
/** Rules that apply to the community. */
27-
rules?: CommunityRuleV2[];
285
}
296

307
export interface CommunityErrorV2 {

test/community.v2.test.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)