private GuildInfo(GuildInfo info) { Id = info.Id; Config = new Dictionary <string, object>(info.Config); MusicChannelId = info.MusicChannelId; MusicChannelTextId = info.MusicChannelTextId; FavoritedSongs = info.FavoritedSongs; Songs = info.Songs; Console.WriteLine(info.Id + ", " + Prefix); }
public static Embed GetNowPlaying(VideoItem video, GuildInfo guild, bool defaultDuration = false) { var builder = new EmbedBuilder() .WithTitle("Now Playing") .WithUrl(video.Video.GetUrl()) .WithColor(new Color(0xBB4FFF)) .WithThumbnailUrl(video.Video.Thumbnails.HighResUrl) // .WithAuthor(author => // { // author // .WithName(Program.Client.CurrentUser.Username) // .WithIconUrl(Program.Client.CurrentUser.GetAvatarUrl()); // }) .AddField("Title", video.Video.Title) .AddField("Duration", !defaultDuration ? (guild.CurrentDuration + "/" + guild.SongDuration) : guild.SongDuration) .AddField("Requested By", video.AuthorUsername); return(builder.Build()); }