Browse Source

prefer shortened linq update (#2093)

tags/3.3.1
Sean GitHub 3 years ago
parent
commit
69da238a0f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      docs/guides/int_basics/modals/intro.md

+ 2
- 2
docs/guides/int_basics/modals/intro.md View File

@@ -111,9 +111,9 @@ _client.ModalSubmitted += async modal =>
List<SocketMessageComponentData> components = List<SocketMessageComponentData> components =
modal.Data.Components.ToList(); modal.Data.Components.ToList();
string food = components string food = components
.Where(x => x.CustomId == "food_name").First().Value;
.First(x => x.CustomId == "food_name").Value;
string reason = components string reason = components
.Where(x => x.CustomId == "food_reason").First().Value;
.First(x => x.CustomId == "food_reason").Value;


// Build the message to send. // Build the message to send.
string message = "hey @everyone; I just learned " + string message = "hey @everyone; I just learned " +


Loading…
Cancel
Save