diff --git a/docs/guides/concepts/samples/events.cs b/docs/guides/concepts/samples/events.cs index f268b6e49..cf0492cb5 100644 --- a/docs/guides/concepts/samples/events.cs +++ b/docs/guides/concepts/samples/events.cs @@ -11,7 +11,7 @@ public class Program // When working with events that have Cacheable parameters, // you must enable the message cache in your config settings if you plan to // use the cached message entity. - _config = new DiscordSocketConfig { MessageCacheSize = 100 }; + var _config = new DiscordSocketConfig { MessageCacheSize = 100 }; _client = new DiscordSocketClient(_config); await _client.LoginAsync(TokenType.Bot, "bot token");