members

Requests to get all present members in this guild.

Unrestricted consumption of the returned Flow is a potentially performance-intensive operation, it is thus recommended limiting the amount of messages requested by using Flow.take, Flow.takeWhile or other functions that limit the amount of messages requested.

guild.members.first { it.displayName == targetName }

The returned flow is lazily executed, any RequestException will be thrown on terminal operators instead.