Support listening/watching activity types
This resolves #931 As part of this change, StreamingType has been refactored to realign with how Discord seems to define the 'type' field on activities now. StreamType is renamed to ActivityType, and the following properties have been changed: - NotStreaming -> Playing - Twitch -> Streaming Additionally, the StreamType property/parameter has been removed from StreamingGame, and moved up a scope to Game. Normal Games may now set their type, to line up with changes in Discord's official clients.
This commit is contained in:
@@ -44,7 +44,7 @@ namespace Discord.WebSocket
|
||||
/// <inheritdoc />
|
||||
public abstract Task StopAsync();
|
||||
public abstract Task SetStatusAsync(UserStatus status);
|
||||
public abstract Task SetGameAsync(string name, string streamUrl = null, StreamType streamType = StreamType.NotStreaming);
|
||||
public abstract Task SetGameAsync(string name, string streamUrl = null, ActivityType type = ActivityType.Playing);
|
||||
public abstract Task SetActivityAsync(IActivity activity);
|
||||
public abstract Task DownloadUsersAsync(IEnumerable<IGuild> guilds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user