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
This commit is contained in:
committed by
Christopher F
parent
88c9964b54
commit
d8c4b7537b
@@ -1,7 +1,7 @@
|
|||||||
public async Task MainAsync()
|
public async Task MainAsync()
|
||||||
{
|
{
|
||||||
// client.Log ...
|
// client.Log ...
|
||||||
client.MessageReceived += MessageReceived;
|
_client.MessageReceived += MessageReceived;
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user