Skip to content

Commit

Permalink
refactor: improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
eggsy committed May 27, 2021
1 parent 74551b5 commit 8cffb38
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions @types/lanyard.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export interface LanyardError {
}

export interface LanyardData {
spotify?: Spotify;
listening_to_spotify: boolean;
spotify: Spotify | null;
discord_user: Discorduser;
discord_status: string;
discord_status: "online" | "dnd" | "offline" | "idle";
activities: Activity[];
listening_to_spotify: boolean;
active_on_discord_mobile: boolean;
active_on_discord_desktop: boolean;
}
Expand All @@ -37,7 +37,7 @@ export interface Spotify {

export interface Timestamps {
start: number;
end: number;
end?: number;
}

export interface Activity {
Expand All @@ -64,16 +64,19 @@ export interface Assets {

export interface Timestamps {
start: number;
end?: number;
}

export interface Emoji {
name: string;
id: string;
animated: boolean;
}

export interface Discorduser {
username: string;
public_flags: number;
id: string;
discriminator: string;
avatar: string;
avatar: string | null;
}

0 comments on commit 8cffb38

Please sign in to comment.