find()
function src/utils/experiments.ts:142function find(rows: any[][] | undefined, name: string): any[] | nullFinds an experiment by its name in the assignments or guild_experiments rows from rest.fetchExperiments()
The Utils.Experiments namespace of detritus-client.
import { Utils } from 'detritus-client';
Utils.Experiments;Object shapes for options, payloads and events.
Standalone helpers.
function find(rows: any[][] | undefined, name: string): any[] | nullFinds an experiment by its name in the assignments or guild_experiments rows from rest.fetchExperiments()
function hash(name: string): numberThe hash discord identifies an experiment by, from its name (like 2022-07_voice_in_threads)
function murmurHash3(text: string, seed?: number): numberMurmurHash3 (32 bit) of the utf-8 text, what discord hashes experiment names (and name:id for rollouts) with
function parseAssignment(row: any[]): ExperimentAssignmentfunction parseGuildExperiment(row: any[]): GuildExperimentfunction position(key: string, id: string): numberWhere a guild (or user) lands in an experiment's rollout, out of 10000 key is the experiment's name, or its hashKey if it has one