From 502eea898d8413deb6420800397de5c24c07198c Mon Sep 17 00:00:00 2001 From: Duke <40759437+dukesteen@users.noreply.github.com> Date: Fri, 25 Feb 2022 01:00:15 +0100 Subject: [PATCH] Fix grammatical errors & review points --- docs/guides/other_libs/samples/ConfiguringSerilog.cs | 2 +- docs/guides/other_libs/serilog.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/other_libs/samples/ConfiguringSerilog.cs b/docs/guides/other_libs/samples/ConfiguringSerilog.cs index f60b8aab1..0d4706424 100644 --- a/docs/guides/other_libs/samples/ConfiguringSerilog.cs +++ b/docs/guides/other_libs/samples/ConfiguringSerilog.cs @@ -24,7 +24,7 @@ public class Program // Some alternative options would be to keep your token in an Environment Variable or a standalone file. // var token = Environment.GetEnvironmentVariable("NameOfYourEnvironmentVariable"); - // var token = File.ReadAllText("token.txt")[0]; + // var token = File.ReadAllText("token.txt"); // var token = JsonConvert.DeserializeObject(File.ReadAllText("config.json")).Token; await _client.LoginAsync(TokenType.Bot, token); diff --git a/docs/guides/other_libs/serilog.md b/docs/guides/other_libs/serilog.md index 7fe5b037c..5086b4b85 100644 --- a/docs/guides/other_libs/serilog.md +++ b/docs/guides/other_libs/serilog.md @@ -26,7 +26,7 @@ Serilog will be configured at the top of your async Main method, it looks like t ## Modifying your logging method -For serilog to log Discord events correctly, we have to map the discord `LogSeverity` to the serilog `LogEventLevel`. You can modify your log method to look like this. +For Serilog to log Discord events correctly, we have to map the Discord `LogSeverity` to the Serilog `LogEventLevel`. You can modify your log method to look like this. [!code-csharp[Modifying your log method](samples/ModifyLogMethod.cs)]