We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01735c8 commit 69da238Copy full SHA for 69da238
docs/guides/int_basics/modals/intro.md
@@ -111,9 +111,9 @@ _client.ModalSubmitted += async modal =>
111
List<SocketMessageComponentData> components =
112
modal.Data.Components.ToList();
113
string food = components
114
- .Where(x => x.CustomId == "food_name").First().Value;
+ .First(x => x.CustomId == "food_name").Value;
115
string reason = components
116
- .Where(x => x.CustomId == "food_reason").First().Value;
+ .First(x => x.CustomId == "food_reason").Value;
117
118
// Build the message to send.
119
string message = "hey @everyone; I just learned " +
0 commit comments