Skip to content

Instantly share code, notes, and snippets.

View SylveonDeko's full-sized avatar

SylveonDeko SylveonDeko

View GitHub Profile
/// <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);
/// <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;