public Client WithActivity(string name, string streamUrl = null, ActivityType type = ActivityType.Playing) { Activity = new ActivityConfig { Name = name, StreamUrl = streamUrl, Type = type }; return(this); }
/// <summary> /// Sets the activity of the <see cref="Client"/>. /// </summary> public async Task SetActivityAsync(ActivityConfig activity) { if (activity != null) { await SetActivityAsync(activity.Name, activity.StreamUrl, activity.Type); } }
public Client WithActivity(ActivityConfig activity) { Activity = activity; return(this); }