From d8c4b7537bb467b75e8856083040c89c8fefd183 Mon Sep 17 00:00:00 2001 From: Alan Schapira Date: Wed, 4 Oct 2017 01:09:06 +0100 Subject: [PATCH] Client is global variable (#789) In the previous section of the tutorial https://github.com/RogueException/Discord.Net/blob/dev/docs/guides/getting_started/samples/intro/client.cs, the client it a global variable with an underscore --- docs/guides/getting_started/samples/intro/message.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/getting_started/samples/intro/message.cs b/docs/guides/getting_started/samples/intro/message.cs index d3cda46e5..d6fd90778 100644 --- a/docs/guides/getting_started/samples/intro/message.cs +++ b/docs/guides/getting_started/samples/intro/message.cs @@ -1,7 +1,7 @@ public async Task MainAsync() { // client.Log ... - client.MessageReceived += MessageReceived; + _client.MessageReceived += MessageReceived; // ... } @@ -11,4 +11,4 @@ private async Task MessageReceived(SocketMessage message) { await message.Channel.SendMessageAsync("Pong!"); } -} \ No newline at end of file +}