diff --git a/Interactivity/Program.cs b/Interactivity/Program.cs index 345c927..9bccde7 100644 --- a/Interactivity/Program.cs +++ b/Interactivity/Program.cs @@ -51,9 +51,6 @@ private static async Task Main(string[] args) // Enabling VoiceNext for . You can also use lavalink. discordClient.UseVoiceNext(); - Console.WriteLine("Connecting to Discord..."); - await discordClient.ConnectAsync(); - // Enabling interactivity support discordClient.UseInteractivity(); @@ -81,6 +78,9 @@ private static async Task Main(string[] args) discordClient.Logger.LogInformation("Application commands registered successfully"); + Console.WriteLine("Connecting to Discord..."); + await discordClient.ConnectAsync(); + // Listen for commands by putting this method to sleep and relying off of DiscordClient's event listeners await Task.Delay(-1); }