Browse Source

Dont exception on SetGame if no url is passed

pull/73/merge
Voltana 9 years ago
parent
commit
ec7297e99c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net/DiscordClient.cs

+ 2
- 2
src/Discord.Net/DiscordClient.cs View File

@@ -321,11 +321,11 @@ namespace Discord
CurrentGame = game;
SendStatus();
}
public void SetGame(string game, string url = null, GameType type = 0)
public void SetGame(string game, string url = null, GameType type = GameType.Default)
{
CurrentGame = new GameInfo() {
Name = game,
Url = url ?? CurrentGame.Url,
Url = url ?? CurrentGame?.Url,
Type = type
};
SendStatus();


Loading…
Cancel
Save