Browse Source

Fixed SetStatus/Game

tags/docs-0.9
RogueException 9 years ago
parent
commit
72f1e6161a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/Discord.Net/DiscordClient.cs

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

@@ -298,10 +298,12 @@ namespace Discord
throw new ArgumentException($"Invalid status, must be {UserStatus.Online} or {UserStatus.Idle}", nameof(status)); throw new ArgumentException($"Invalid status, must be {UserStatus.Online} or {UserStatus.Idle}", nameof(status));


Status = status; Status = status;
SendStatus();
} }
public void SetGame(string game) public void SetGame(string game)
{ {
CurrentGame = game; CurrentGame = game;
SendStatus();
} }
private void SendStatus() private void SendStatus()
{ {


Loading…
Cancel
Save