add pending embeds to messages
refactor to reuse code in both getMessages methods