This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Contains logic for handling autoplay in a server. Requires either a last.fm API key. | |
/// </summary> | |
/// <returns>A bool depending on if the api key was correct.</returns> | |
public async Task<bool> AutoPlay() | |
{ | |
var autoPlay = await GetAutoPlay(); | |
if (autoPlay == 0) | |
return true; | |
var queue = await cache.GetMusicQueue(base.GuildId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Represents an artist with details like name, MusicBrainz ID, and their URL on Last.fm. | |
/// </summary> | |
public class Artist | |
{ | |
/// <summary> | |
/// Gets or sets the name of the artist. | |
/// </summary> | |
[JsonProperty("name")] | |
public string Name; |