Skip to main content

Class SpotifyGame

A user's activity for listening to a song on Spotify.

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public class SpotifyGame : Game, IActivity

Properties​

Artists​

Gets the song's artist(s).

View Source​
Declaration
public IReadOnlyCollection<string> Artists { get; }

AlbumTitle​

Gets the Spotify album title of the song.

View Source​
Declaration
public string AlbumTitle { get; }

TrackTitle​

Gets the track title of the song.

View Source​
Declaration
public string TrackTitle { get; }

StartedAt​

Gets the date when the track started playing.

View Source​
Declaration
public DateTimeOffset? StartedAt { get; }

EndsAt​

Gets the date when the track ends.

View Source​
Declaration
public DateTimeOffset? EndsAt { get; }

Duration​

Gets the duration of the song.

View Source​
Declaration
public TimeSpan? Duration { get; }

Elapsed​

Gets the elapsed duration of the song.

View Source​
Declaration
public TimeSpan? Elapsed { get; }

Remaining​

Gets the remaining duration of the song.

View Source​
Declaration
public TimeSpan? Remaining { get; }

TrackId​

Gets the track ID of the song.

View Source​
Declaration
public string TrackId { get; }

SessionId​

Gets the session ID of the song.

View Source​
Declaration
public string SessionId { get; }

AlbumArtUrl​

Gets the URL of the album art.

View Source​
Declaration
public string AlbumArtUrl { get; }

TrackUrl​

Gets the direct Spotify URL of the track.

View Source​
Declaration
public string TrackUrl { get; }

Methods​

ToString()​

Gets the full information of the song.

View Source​
Declaration
public override string ToString()
Returns​

System.String: A string containing the full information of the song (e.g. Avicii, Rita Ora - Lonely Together (feat. Rita Ora) (3:08)

Implements​