Skip to content

Commit 689353f

Browse files
authored
Add edit controls to TweetV2 (#607)
1 parent 8bd9fa0 commit 689353f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/types/v2/tweet.definition.v2.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ export interface TweetOrganicMetricsV2 {
168168

169169
export type TweetPromotedMetricsV2 = TweetOrganicMetricsV2;
170170

171+
export interface EditControlsV2 {
172+
editable_until: string;
173+
edits_remaining: number;
174+
is_edit_eligible: boolean;
175+
}
176+
171177
export interface NoteTweetV2 {
172178
text: string;
173179
entities?: NoteTweetEntitiesV2;
@@ -225,6 +231,7 @@ export interface TweetV2 {
225231
non_public_metrics?: TweetNonPublicMetricsV2;
226232
organic_metrics?: TweetOrganicMetricsV2;
227233
promoted_metrics?: TweetPromotedMetricsV2;
234+
edit_controls?: EditControlsV2;
228235
possibly_sensitive?: boolean;
229236
lang?: string;
230237
reply_settings?: 'everyone' | 'mentionedUsers' | 'following';

0 commit comments

Comments
 (0)