Merge pull request #354 from zenima/docupdate/status
Doc update for modify user sample code
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user