class SharedClientThemeBuilder
implements
JSONEncodable<APIMessageSharedClientTheme>export declare class SharedClientThemeBuilder implements JSONEncodable<APIMessageSharedClientTheme>A builder that creates API-compatible JSON data for shared client themes.
Constructors
constructor(data?: Partial<APIMessageSharedClientTheme>)
data?: Partial<APIMessageSharedClientTheme>
Creates a new shared client theme builder.
setBaseMix(baseMix: number) : this
baseMix: number
Sets the base mix (intensity) of this theme.
setBaseTheme(baseTheme: BaseThemeType) : this
baseTheme: BaseThemeType
Sets the base theme (mode) of this theme.
setColors(...colors: RestOrArray<string>) : this
...colors: RestOrArray<string>
Sets the colors of this theme.
setGradientAngle(angle: number) : this
angle: number
Sets the gradient angle of this theme.
toJSON(validationOverride?: boolean) : APIMessageSharedClientTheme
validationOverride?: boolean
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.