Class SpotifyGame
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
A user's activity for listening to a song on Spotify.
public class SpotifyGame : Game, IActivity
- Inheritance
-
SpotifyGame
- Implements
- Inherited Members
Properties
AlbumArtUrl
Gets the URL of the album art.
public string AlbumArtUrl { get; }
Property Value
- string
A URL pointing to the album art of the track (e.g.
https://i.scdn.co/image/ba2fd8823d42802c2f8738db0b33a4597f2f39e7
).
AlbumTitle
Gets the Spotify album title of the song.
public string AlbumTitle { get; }
Property Value
- string
A string containing the name of the album (e.g.
AVĪCI (01)
).
Artists
Gets the song's artist(s).
public IReadOnlyCollection<string> Artists { get; }
Property Value
- IReadOnlyCollection<string>
A collection of string containing all artists featured in the track (e.g.
Avicii
;Rita Ora
).
Duration
Gets the duration of the song.
public TimeSpan? Duration { get; }
Property Value
Elapsed
Gets the elapsed duration of the song.
public TimeSpan? Elapsed { get; }
Property Value
EndsAt
Gets the date when the track ends.
public DateTimeOffset? EndsAt { get; }
Property Value
- DateTimeOffset?
A DateTimeOffset containing the finish timestamp of the song.
Remaining
Gets the remaining duration of the song.
public TimeSpan? Remaining { get; }
Property Value
SessionId
Gets the session ID of the song.
public string SessionId { get; }
Property Value
- string
A string containing the session ID.
Remarks
The purpose of this property is currently unknown.
StartedAt
Gets the date when the track started playing.
public DateTimeOffset? StartedAt { get; }
Property Value
- DateTimeOffset?
A DateTimeOffset containing the start timestamp of the song.
TrackId
Gets the track ID of the song.
public string TrackId { get; }
Property Value
- string
A string containing the Spotify ID of the track (e.g.
7DoN0sCGIT9IcLrtBDm4f0
).
TrackTitle
Gets the track title of the song.
public string TrackTitle { get; }
Property Value
- string
A string containing the name of the song (e.g.
Lonely Together (feat. Rita Ora)
).
TrackUrl
Gets the direct Spotify URL of the track.
public string TrackUrl { get; }
Property Value
- string
A URL pointing directly to the track on Spotify. (e.g.
https://open.spotify.com/track/7DoN0sCGIT9IcLrtBDm4f0
).
Methods
ToString()
Gets the full information of the song.
public override string ToString()
Returns
- string
A string containing the full information of the song (e.g.
Avicii, Rita Ora - Lonely Together (feat. Rita Ora) (3:08)