OtherFunctionsInput: {
    checkRateLimit: {
        auth: string;
    };
    eval: {
        auth: string;
        body: EvalBody;
    };
    getAllLanguages: never;
    guildStatus: {
        auth: string;
        guildId: string;
    };
    oAuth2: {
        guildId?: string;
        ref?: string;
        state?: OAuth2State;
    };
    scheduler: {
        auth: string;
        body: SchedulerBody;
    };
}

Type declaration

  • checkRateLimit: {
        auth: string;
    }
    • auth: string
  • eval: {
        auth: string;
        body: EvalBody;
    }
  • getAllLanguages: never
  • guildStatus: {
        auth: string;
        guildId: string;
    }
    • auth: string
    • guildId: string
  • oAuth2: {
        guildId?: string;
        ref?: string;
        state?: OAuth2State;
    }

    ref is referral attribution: which server's invite button was clicked, e.g. v1.notification.<guildId>. Read it off the invite page's query string and pass it straight through - it is opaque here.

    The API packs it into the OAuth state it sends to Discord, which echoes it back to the invite callback, where the referral edge is recorded. Omitting it is normal: a direct visit carries no referral and records as unattributed rather than failing.

    NOT the same field as state, which selects the environment (l / d / c) and is unchanged.

    • OptionalguildId?: string
    • Optionalref?: string
    • Optionalstate?: OAuth2State
  • scheduler: {
        auth: string;
        body: SchedulerBody;
    }