From 69da238a0f139ca30ad749634af80664cac87be8 Mon Sep 17 00:00:00 2001 From: Sean <29239704+Bakersbakebread@users.noreply.github.com> Date: Sat, 12 Feb 2022 01:45:54 +0000 Subject: [PATCH] prefer shortened linq update (#2093) --- docs/guides/int_basics/modals/intro.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/int_basics/modals/intro.md b/docs/guides/int_basics/modals/intro.md index 3212019ae..81f0da03c 100644 --- a/docs/guides/int_basics/modals/intro.md +++ b/docs/guides/int_basics/modals/intro.md @@ -111,9 +111,9 @@ _client.ModalSubmitted += async modal => List components = modal.Data.Components.ToList(); string food = components - .Where(x => x.CustomId == "food_name").First().Value; + .First(x => x.CustomId == "food_name").Value; string reason = components - .Where(x => x.CustomId == "food_reason").First().Value; + .First(x => x.CustomId == "food_reason").Value; // Build the message to send. string message = "hey @everyone; I just learned " +