private void AppendMessage(DiscordMessage m)
 {
     if (messagesList.Items.Count > 0)
     {
         var previousStub = (messagesList.Items[messagesList.Items.Count - 1] as MessageStub);
         if ((previousStub.Message.timestamp - m.timestamp) < TimeSpan.FromMinutes(2))
         {
             if (m.Author == (messagesList.Items[messagesList.Items.Count - 1] as MessageStub).Message.Author)
             {
                 (messagesList.Items[messagesList.Items.Count - 1] as MessageStub).AppendMessage(m);
             }
             else
             {
                 MessageStub stub = new MessageStub(m, mainClientReference);
                 if (stub.Message.Author != null)
                 {
                     if (App.ClientConfiguration.Settings.IgnoredUserIDs.Contains(stub.Message.Author.ID))
                     {
                         stub.SetMessageText("<Ignored Message>");
                     }
                 }
                 stub.IgnoredUserAdded += IgnoreUserUpdate;
                 messagesList.Items.Add(stub);
                 MainScroller.ScrollToBottom();
             }
         }
         else
         {
             MessageStub stub = new MessageStub(m, mainClientReference);
             if (stub.Message.Author != null)
             {
                 if (App.ClientConfiguration.Settings.IgnoredUserIDs.Contains(stub.Message.Author.ID))
                 {
                     stub.SetMessageText("<Ignored Message>");
                 }
             }
             stub.IgnoredUserAdded += IgnoreUserUpdate;
             messagesList.Items.Add(stub);
             MainScroller.ScrollToBottom();
         }
     }
     else
     {
         MessageStub stub = new MessageStub(m, mainClientReference);
         if (stub.Message.Author != null)
         {
             if (App.ClientConfiguration.Settings.IgnoredUserIDs.Contains(stub.Message.Author.ID))
             {
                 stub.SetMessageText("<Ignored Message>");
             }
         }
         stub.IgnoredUserAdded += IgnoreUserUpdate;
         messagesList.Items.Add(stub);
         MainScroller.ScrollToBottom();
     }
 }
 private void AppendMessage(DiscordMessage m)
 {
     if(messagesList.Items.Count > 0)
     {
         var previousStub = (messagesList.Items[messagesList.Items.Count - 1] as MessageStub);
         if ((previousStub.Message.timestamp - m.timestamp) < TimeSpan.FromMinutes(2))
         {
             if (m.author == (messagesList.Items[messagesList.Items.Count - 1] as MessageStub).Message.author)
             {
                 (messagesList.Items[messagesList.Items.Count - 1] as MessageStub).AppendMessage(m);
             }
             else
             {
                 MessageStub stub = new MessageStub(m, mainClientReference);
                 if (stub.Message.author != null)
                     if (App.ClientConfiguration.Settings.IgnoredUserIDs.Contains(stub.Message.author.ID))
                         stub.SetMessageText("<Ignored Message>");
                 stub.IgnoredUserAdded += IgnoreUserUpdate;
                 messagesList.Items.Add(stub);
                 MainScroller.ScrollToBottom();
             }
         }
         else
         {
             MessageStub stub = new MessageStub(m, mainClientReference);
             if (stub.Message.author != null)
                 if (App.ClientConfiguration.Settings.IgnoredUserIDs.Contains(stub.Message.author.ID))
                     stub.SetMessageText("<Ignored Message>");
             stub.IgnoredUserAdded += IgnoreUserUpdate;
             messagesList.Items.Add(stub);
             MainScroller.ScrollToBottom();
         }
     }
     else
     {
         MessageStub stub = new MessageStub(m, mainClientReference);
         if(stub.Message.author != null)
             if (App.ClientConfiguration.Settings.IgnoredUserIDs.Contains(stub.Message.author.ID))
                 stub.SetMessageText("<Ignored Message>");
         stub.IgnoredUserAdded += IgnoreUserUpdate;
         messagesList.Items.Add(stub);
         MainScroller.ScrollToBottom();
     }
 }
 private void AppendMessage(DiscordMessage m)
 {
     if(messagesList.Items.Count > 0)
     {
         var previousStub = (messagesList.Items[messagesList.Items.Count - 1] as MessageStub);
         if ((previousStub.Message.timestamp - m.timestamp) < TimeSpan.FromMinutes(2))
         {
             if (m.author == (messagesList.Items[messagesList.Items.Count - 1] as MessageStub).Message.author)
             {
                 (messagesList.Items[messagesList.Items.Count - 1] as MessageStub).AppendMessage(m);
             }
             else
             {
                 MessageStub stub = new MessageStub(m);
                 messagesList.Items.Add(stub);
                 MainScroller.ScrollToBottom();
             }
         }
         else
         {
             MessageStub stub = new MessageStub(m);
             messagesList.Items.Add(stub);
             MainScroller.ScrollToBottom();
         }
     }
     else
     {
         MessageStub stub = new MessageStub(m);
         messagesList.Items.Add(stub);
         MainScroller.ScrollToBottom();
     }
 }