Update logging.cs
This commit is contained in:
@@ -4,12 +4,12 @@ using Discord.Rest;
|
||||
public class Program
|
||||
{
|
||||
// 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();
|
||||
|
||||
public async Task Start()
|
||||
{
|
||||
_client = new DiscordClient(new DiscordConfig() {
|
||||
_client = new DiscordSocketClient(new DiscordConfig() {
|
||||
LogLevel = LogSeverity.Info
|
||||
});
|
||||
|
||||
@@ -20,5 +20,8 @@ public class Program
|
||||
};
|
||||
|
||||
await _client.LoginAsync(TokenType.Bot, "bot token");
|
||||
await _client.ConnectAsync();
|
||||
|
||||
await Task.Delay(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user