retrieveMemberOrNull

suspend fun Guild.retrieveMemberOrNull(user: UserSnowflake, useCache: Boolean): Member?(source)

Deprecated

Moved to the BotCommands-jda-ktx module You can find & replace: Find: io.github.freya022.botcommands.api.core.utils.retrieveMemberOrNull Replace: dev.freya02.botcommands.jda.ktx.retrieve.retrieveMemberOrNull

Retrieves a Member with the provided User.

Throws the same exceptions as Guild.retrieveMember, minus ErrorResponse.UNKNOWN_MEMBER and ErrorResponse.UNKNOWN_USER.

Parameters

user

The user to retrieve the member for

useCache

Whether this should rely on the cache, set to false to always make a request.

See also