Example #1
0
 public DiscordChannel WithUpdatedSubscribedArtist(SubscribedArtist subscribedArtits) =>
 new DiscordChannel(this.Id,
                    this.GuildId,
                    this.Ignore,
                    this.CurrentArtistOptions,
                    this.SubscribedArtists.Select(artist => artist.Id == subscribedArtits.Id ? subscribedArtits : artist));
Example #2
0
 public DiscordChannel WithSubscribedArtistAdded(SubscribedArtist newArtist) => new DiscordChannel(this.Id,
                                                                                                   this.GuildId,
                                                                                                   this.Ignore,
                                                                                                   this.CurrentArtistOptions,
                                                                                                   this.SubscribedArtists.Concat(new SubscribedArtist[] { newArtist }));