getGuildMembers

suspend fun getGuildMembers(guildId: Snowflake, after: Position.After? = null, limit: Int? = null): List<DiscordGuildMember>(source)


suspend fun getGuildMembers(guildId: Snowflake, query: String, limit: Int? = null): List<DiscordGuildMember>(source)

Requests members with a username or nickname starting with query.

Parameters

limit

limits the maximum amount of members returned. Max 1000, defaults to 1.