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 " +