prefer shortened linq update (#2093)
This commit is contained in:
@@ -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 " +
|
||||||
|
|||||||
Reference in New Issue
Block a user