diff --git a/docs/guides/samples.md b/docs/guides/samples.md index ef85e4898..4406f2f1e 100644 --- a/docs/guides/samples.md +++ b/docs/guides/samples.md @@ -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)] \ No newline at end of file +[!code-csharp[Message to Channel](samples/faq/send_message.cs)] diff --git a/docs/guides/samples/faq/status.cs b/docs/guides/samples/faq/status.cs index 4d6a29924..8025dd7fd 100644 --- a/docs/guides/samples/faq/status.cs +++ b/docs/guides/samples/faq/status.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"); - }); -} \ No newline at end of file + await _client.SetStatus(UserStatus.Idle); + await _client.SetGame("Type !help for help"); +}