@leonardssh/use-lanyard
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -19,4 +19,4 @@ export declare interface Activity { | ||
export declare interface Assets { | ||
small_text: string; | ||
small_image: string; | ||
small_text?: string; | ||
small_image?: string; | ||
large_text: string; | ||
@@ -26,8 +26,8 @@ large_image: string; | ||
export declare interface Discorduser { | ||
export declare interface DiscordUser { | ||
username: string; | ||
public_flags: number; | ||
public_flags?: number; | ||
id: string; | ||
discriminator: string; | ||
avatar: string; | ||
avatar: string | null; | ||
} | ||
@@ -37,9 +37,11 @@ | ||
name: string; | ||
id?: string; | ||
animated?: boolean; | ||
} | ||
export declare interface LanyardData { | ||
spotify?: Spotify; | ||
spotify: Spotify | null; | ||
listening_to_spotify: boolean; | ||
discord_user: Discorduser; | ||
discord_status: string; | ||
discord_user: DiscordUser; | ||
discord_status: "online" | "idle" | "dnd" | "offline"; | ||
activities: Activity[]; | ||
@@ -63,3 +65,3 @@ active_on_discord_mobile: boolean; | ||
success: boolean; | ||
data: LanyardData; | ||
data?: LanyardData; | ||
error?: LanyardError; | ||
@@ -79,9 +81,5 @@ } | ||
start: number; | ||
end: number; | ||
end?: number; | ||
} | ||
export declare interface Timestamps { | ||
start: number; | ||
} | ||
export declare function useLanyard(options: LanyardOptions): Promise<LanyardResponse | LanyardResponse[] | void>; | ||
@@ -88,0 +86,0 @@ |
{ | ||
"name": "@leonardssh/use-lanyard", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "๐ Lanyard with Composition API for Vue", | ||
@@ -46,3 +46,3 @@ "author": "LeonardSSH <leonardssh22@gmail.com> (https://leonard.sh)", | ||
"format": "prettier --write src/**/*.ts", | ||
"lint": "eslint packages --ext js,ts --fix", | ||
"lint": "eslint src --ext js,ts --fix", | ||
"commit": "git-cz", | ||
@@ -49,0 +49,0 @@ "cz": "git-cz" |
@@ -80,3 +80,3 @@ <p align="center"> | ||
4. Commit your changes, and push them. | ||
5. Submit a Pull Request [here](https://github.com/LeonardSSH/vscord/pulls)! | ||
5. Submit a Pull Request [here](https://github.com/LeonardSSH/use-lanyard/pulls)! | ||
@@ -83,0 +83,0 @@ ## ๐ License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37592
941