| @@ -4,12 +4,12 @@ using Discord.Rest; | |||||
| public class Program | public class Program | ||||
| { | { | ||||
| // Note: This is the light client, it only supports REST calls. | // Note: This is the light client, it only supports REST calls. | ||||
| private DiscordClient _client; | |||||
| private DiscordSocketClient _client; | |||||
| static void Main(string[] args) => new Program().Start().GetAwaiter().GetResult(); | static void Main(string[] args) => new Program().Start().GetAwaiter().GetResult(); | ||||
| public async Task Start() | public async Task Start() | ||||
| { | { | ||||
| _client = new DiscordClient(new DiscordConfig() { | |||||
| _client = new DiscordSocketClient(new DiscordConfig() { | |||||
| LogLevel = LogSeverity.Info | LogLevel = LogSeverity.Info | ||||
| }); | }); | ||||
| @@ -20,5 +20,8 @@ public class Program | |||||
| }; | }; | ||||
| await _client.LoginAsync(TokenType.Bot, "bot token"); | await _client.LoginAsync(TokenType.Bot, "bot token"); | ||||
| await _client.ConnectAsync(); | |||||
| await Task.Delay(-1); | |||||
| } | } | ||||
| } | |||||
| } | |||||