public ApplicationViewModel()
        {
            QueueViewModel = new QueueViewModel(this);

            SpotifyViewModel.IsSelected = true;

            SideMenuButtonClickedCommand = new DelegateCommand(OnSideMenuButtonClicked);

            ApiKeys.GetApiKeys();

            //DiscordThread = new Thread(() => DiscordBot.InitialiseBot(QueueViewModel));
            //DiscordThread.Start();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initialise the bot and login.
 /// </summary>
 public static void InitialiseBot(QueueViewModel queueViewModel)
 {
     DiscordBot.queueViewModel = queueViewModel;
     Initialise().GetAwaiter().GetResult();
 }