We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a46718 commit 7953b66Copy full SHA for 7953b66
1 file changed
Src/LineDevelopers/Message/LineMultiPersonChatClient.cs
@@ -25,8 +25,8 @@ protected override async Task EnsureSuccessStatusCodeAsync(HttpResponseMessage?
25
/// The number returned excludes the LINE Official Account.</returns>
26
public async Task<int> GetNumberOfUsersAsync(string roomId)
27
{
28
- var json = await base.GetAsync<JsonNode>($"v2/bot/room/{roomId}/members/count").ConfigureAwait(false);
29
- return Convert.ToInt32(json["count"]);
+ var result = await base.GetAsync<JsonNode>($"v2/bot/room/{roomId}/members/count").ConfigureAwait(false);
+ return result["count"].GetValue<int>();
30
}
31
32
/// <summary>
0 commit comments