From d22a0da01ba9358c05aa940c8f7b8d7ac0e5b459 Mon Sep 17 00:00:00 2001 From: Thijn Date: Fri, 1 Dec 2023 11:18:00 +0100 Subject: [PATCH] chore: add can_dm field to Profile --- src/profile.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/profile.ts b/src/profile.ts index 3ed0061f..18532e10 100644 --- a/src/profile.ts +++ b/src/profile.ts @@ -33,6 +33,7 @@ export interface LegacyUserRaw { has_custom_timelines?: boolean; has_extended_profile?: boolean; url?: string; + can_dm?: boolean; } /** @@ -62,6 +63,7 @@ export interface Profile { userId?: string; username?: string; website?: string; + canDm?: boolean; } export interface UserRaw { @@ -105,6 +107,7 @@ export function parseProfile( userId: user.id_str, username: user.screen_name, isBlueVerified: isBlueVerified ?? false, + canDm: user.can_dm, }; if (user.created_at != null) {