Merge pull request #354 from zenima/docupdate/status

Doc update for modify user sample code
This commit is contained in:
Christopher F
2016-11-15 14:18:23 -05:00
committed by GitHub
2 changed files with 5 additions and 8 deletions

View File

@@ -13,8 +13,8 @@ title: Samples
#### Changing the bot's status
[!code-sharp[Bot Status](samples/faq/status.cs)]
[!code-csharp[Bot Status](samples/faq/status.cs)]
#### Sending a message to a channel
[!code-csharp[Message to Channel](samples/faq/send_message.cs)]
[!code-csharp[Message to Channel](samples/faq/send_message.cs)]

View File

@@ -1,8 +1,5 @@
public async Task ModifyStatus()
{
await (await _client.GetCurrentUserAsync()).ModifyStatusAsync(x =>
{
x.Status = UserStatus.Idle;
x.Game = new Game("Type !help for help");
});
}
await _client.SetStatus(UserStatus.Idle);
await _client.SetGame("Type !help for help");
}