Class SpotifyGame
A user's activity for listening to a song on Spotify.
Implements
Inherited Members
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public class SpotifyGame : Game, IActivity
Properties
| Improve this Doc View SourceAlbumArtUrl
Gets the URL of the album art.
Declaration
public string AlbumArtUrl { get; }
Property Value
| Type | Description |
|---|---|
| System.String | A URL pointing to the album art of the track (e.g.
|
AlbumTitle
Gets the Spotify album title of the song.
Declaration
public string AlbumTitle { get; }
Property Value
| Type | Description |
|---|---|
| System.String | A string containing the name of the album (e.g. |
Artists
Gets the song's artist(s).
Declaration
public IReadOnlyCollection<string> Artists { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyCollection<System.String> | A collection of string containing all artists featured in the track (e.g. |
Duration
Gets the duration of the song.
Declaration
public TimeSpan? Duration { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.TimeSpan> | A System.TimeSpan containing the duration of the song. |
Elapsed
Gets the elapsed duration of the song.
Declaration
public TimeSpan? Elapsed { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.TimeSpan> | A System.TimeSpan containing the elapsed duration of the song. |
EndsAt
Gets the date when the track ends.
Declaration
public DateTimeOffset? EndsAt { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.DateTimeOffset> | A System.DateTimeOffset containing the finish timestamp of the song. |
Remaining
Gets the remaining duration of the song.
Declaration
public TimeSpan? Remaining { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.TimeSpan> | A System.TimeSpan containing the remaining duration of the song. |
SessionId
Gets the session ID of the song.
Declaration
public string SessionId { get; }
Property Value
| Type | Description |
|---|---|
| System.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.
Declaration
public DateTimeOffset? StartedAt { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.DateTimeOffset> | A System.DateTimeOffset containing the start timestamp of the song. |
TrackId
Gets the track ID of the song.
Declaration
public string TrackId { get; }
Property Value
| Type | Description |
|---|---|
| System.String | A string containing the Spotify ID of the track (e.g. |
TrackTitle
Gets the track title of the song.
Declaration
public string TrackTitle { get; }
Property Value
| Type | Description |
|---|---|
| System.String | A string containing the name of the song (e.g. |
TrackUrl
Gets the direct Spotify URL of the track.
Declaration
public string TrackUrl { get; }
Property Value
| Type | Description |
|---|---|
| System.String | A URL pointing directly to the track on Spotify. (e.g.
|
Methods
| Improve this Doc View SourceToString()
Gets the full information of the song.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string containing the full information of the song (e.g.
|