From 0bdc2455bc71e71e3fe2e67d3ca3fc5317bcf0d2 Mon Sep 17 00:00:00 2001 From: Joe4evr Date: Sun, 16 Jul 2017 17:32:31 +0200 Subject: [PATCH] Add line to show subscribing to CommandService#Log (#756) --- docs/guides/getting_started/samples/intro/structure.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guides/getting_started/samples/intro/structure.cs b/docs/guides/getting_started/samples/intro/structure.cs index 706d0a38d..00ce7a6c9 100644 --- a/docs/guides/getting_started/samples/intro/structure.cs +++ b/docs/guides/getting_started/samples/intro/structure.cs @@ -39,6 +39,9 @@ class Program // add the `using` at the top, and uncomment this line: //WebSocketProvider = WS4NetProvider.Instance }); + // Subscribe the logging handler to both the client and the CommandService. + _client.Log += Logger; + _commands.Log += Logger; } // Example of a logging handler. This can be re-used by addons @@ -77,9 +80,6 @@ class Program private async Task MainAsync() { - // Subscribe the logging handler. - _client.Log += Logger; - // Centralize the logic for commands into a seperate method. await InitCommands();