public ApplicationViewModel() { QueueViewModel = new QueueViewModel(this); SpotifyViewModel.IsSelected = true; SideMenuButtonClickedCommand = new DelegateCommand(OnSideMenuButtonClicked); ApiKeys.GetApiKeys(); //DiscordThread = new Thread(() => DiscordBot.InitialiseBot(QueueViewModel)); //DiscordThread.Start(); }
/// <summary> /// Initialise the bot and login. /// </summary> public static void InitialiseBot(QueueViewModel queueViewModel) { DiscordBot.queueViewModel = queueViewModel; Initialise().GetAwaiter().GetResult(); }