Update SpotifyActivity model
Some checks failed
Publish JS SDK / docker (push) Successful in 29s
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Failing after 54s

This commit is contained in:
Braydon 2024-09-09 21:09:27 -04:00
parent c090fc8820
commit e6809a958f
3 changed files with 23 additions and 3 deletions

@ -172,7 +172,12 @@ public final class DiscordUser {
@AllArgsConstructor @Getter
public static class SpotifyActivity {
/**
* The currently playing song.
* The ID of the currently playing track.
*/
@NonNull private final String trackId;
/**
* The name of the currently playing track.
*/
@NonNull private final String song;
@ -186,6 +191,11 @@ public final class DiscordUser {
*/
@NonNull private final String album;
/**
* The URL to the playing track.
*/
@NonNull private final String trackUrl;
/**
* The current progress of the track (in millis).
*/

@ -1,6 +1,6 @@
{
"name": "usetether",
"version": "1.1.9",
"version": "1.2.0",
"author": "Braydon (Rainnny) <braydonrainnny@gmail.com>",
"description": "An API designed to provide real-time access to a user's Discord data.",
"keywords": [

@ -127,7 +127,12 @@ export type Banner = {
*/
export type SpotifyActivity = {
/**
* The currently playing song.
* The ID of the currently playing track.
*/
trackId: string;
/**
* The name of the currently playing track.
*/
song: string;
@ -141,6 +146,11 @@ export type SpotifyActivity = {
*/
album: string;
/**
* The URL to the playing track.
*/
trackUrl: string;
/**
* The current progress of the track (in millis).
*/