|
|
@@ -65,7 +65,7 @@ namespace Discord |
|
|
|
/// <summary> Gets the status of the current user. </summary> |
|
|
|
public UserStatus Status { get; private set; } |
|
|
|
/// <summary> Gets the game the current user is displayed as playing. </summary> |
|
|
|
public GameInfo CurrentGame { get; private set; } |
|
|
|
public Game CurrentGame { get; private set; } |
|
|
|
|
|
|
|
/// <summary> Gets a collection of all extensions added to this DiscordClient. </summary> |
|
|
|
public IEnumerable<IService> Services => _services; |
|
|
@@ -319,18 +319,19 @@ namespace Discord |
|
|
|
Status = status; |
|
|
|
SendStatus(); |
|
|
|
} |
|
|
|
public void SetGame(GameInfo game) |
|
|
|
public void SetGame(Game game) |
|
|
|
{ |
|
|
|
CurrentGame = game; |
|
|
|
SendStatus(); |
|
|
|
} |
|
|
|
public void SetGame(string game, string url = null, GameType type = GameType.Default) |
|
|
|
public void SetGame(string game) |
|
|
|
{ |
|
|
|
CurrentGame = new GameInfo() { |
|
|
|
Name = game, |
|
|
|
Url = url ?? CurrentGame?.Url, |
|
|
|
Type = type |
|
|
|
}; |
|
|
|
CurrentGame = new Game(game); |
|
|
|
SendStatus(); |
|
|
|
} |
|
|
|
public void SetGame(string game, GameType type, string url) |
|
|
|
{ |
|
|
|
CurrentGame = new Game(game, type, url); |
|
|
|
SendStatus(); |
|
|
|
} |
|
|
|
private void SendStatus() |
|
|
|