Browse Source

Update events.cs

Forgot a var >_>
tags/1.0
Alex Gravely GitHub 8 years ago
parent
commit
6e21d33999
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docs/guides/concepts/samples/events.cs

+ 1
- 1
docs/guides/concepts/samples/events.cs View File

@@ -11,7 +11,7 @@ public class Program
// When working with events that have Cacheable<IMessage, ulong> parameters, // When working with events that have Cacheable<IMessage, ulong> parameters,
// you must enable the message cache in your config settings if you plan to // you must enable the message cache in your config settings if you plan to
// use the cached message entity. // use the cached message entity.
_config = new DiscordSocketConfig { MessageCacheSize = 100 };
var _config = new DiscordSocketConfig { MessageCacheSize = 100 };
_client = new DiscordSocketClient(_config); _client = new DiscordSocketClient(_config);


await _client.LoginAsync(TokenType.Bot, "bot token"); await _client.LoginAsync(TokenType.Bot, "bot token");


Loading…
Cancel
Save