Skip to content

Commit

Permalink
chore: add can_dm field to Profile
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijnK authored and karashiiro committed Dec 3, 2023
1 parent 36299e2 commit d22a0da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface LegacyUserRaw {
has_custom_timelines?: boolean;
has_extended_profile?: boolean;
url?: string;
can_dm?: boolean;
}

/**
Expand Down Expand Up @@ -62,6 +63,7 @@ export interface Profile {
userId?: string;
username?: string;
website?: string;
canDm?: boolean;
}

export interface UserRaw {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit d22a0da

Please sign in to comment.