public async Task GetMemoryInformationAsync() { IUserMessage response; EmbedBuilder initialBuilder; initialBuilder = EmbedHelper.GetDefaultEmbed(Context); initialBuilder.AddField(":mag: Gathering data", "Please wait..."); response = await ReplyAsync("", embed : initialBuilder.Build()); try { EmbedBuilder embed; Dictionary <string, string> ram; embed = EmbedHelper.GetDefaultEmbed(Context); ram = MemoryProvider.GetRamUsage(); foreach (var kvp in ram) { embed.AddField(kvp.Key, kvp.Value); } await response.ModifyAsync(msg => { msg.Embed = embed.Build(); msg.Content = ""; }); } catch (Exception e) { await response.ModifyAsync(msg => msg = ErrorHandler.GetDefaultErrorMessageEmbed(e, msg, Context.Message)); } }