Godot SDKAPI Reference
Cohorts
This API is used to check the local player's membership in cohorts defined on the Gamebeast dashboard.
For more information about Cohorts, visit the User Cohorts Guide.
is_member(cohort_name)
boolreturn type
A coroutine: await it. Returns whether the local player is a member of the named cohort, or false when the cohort doesn't exist (the SDK logs a warning) or the check fails.
Results are cached for a minute, and checks of the same cohort made while one is in flight share it. Membership is recomputed by the backend, so treat it as eventually consistent rather than real-time.
cohort_nameStringThe name of the cohort.
Usage
if await Gamebeast.cohorts.is_member("High Spenders"):
show_vip_offer()clear_cache()
voidreturn type
Forgets cached answers, so the next check asks the backend again.