getEntitlements

open override fun getEntitlements(applicationId: Snowflake, request: EntitlementsListRequest): Flow<Entitlement>(source)

Requests to get all Entitlements for the Application with the given applicationId.

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

Queries that use EntitlementsListRequest.excludeEnded may be susceptible to Clock drift as the System Clock is required.