Type Alias GuildClipForwardsData

GuildClipForwardsData: {
    forwards: GuildClipForward[];
    limits: Record<ClipForwardPlatform, ClipForwardCap>;
    premium: {
        tierId: string;
        tierName: string;
    };
}

Type declaration

  • forwards: GuildClipForward[]
  • limits: Record<ClipForwardPlatform, ClipForwardCap>

    PER PLATFORM, because the allowance is. defaultKickClips and defaultTwitchClips are separate tier numbers with separate addons (additionalKickClips / additionalTwitchClips), so a single pair would be wrong for whichever platform you were rendering.

    The server computes this with the same helper the create route enforces with, so a UI that believes there is room will not be refused - render the Add control off currentTotal < maxLimit rather than counting forwards yourself.

  • premium: {
        tierId: string;
        tierName: string;
    }

    Which tier the allowance came from, so an upsell can name it.

    • tierId: string
    • tierName: string