Link Search Menu Expand Document

Constructor: help.peerColorOption

Back to constructors index

Contains info about a color palette ».

Attributes:

NameTypeRequiredDescription
hiddenBoolOptionalWhether this palette should not be displayed as an option to the user when choosing a palette to apply to profile pages or message accents.
color_idintYesPalette ID.
colorshelp.PeerColorSetOptionalLight mode palette.
Will be empty for IDs 0 to 6 inclusive, in which case a palette containing a single color from the following colors should be used: red, orange, violet, green, cyan, blue, pink for indexes 0 to 6.
dark_colorshelp.PeerColorSetOptionalDark mode palette. Optional, defaults to the palette in colors (or the autogenerated palette for IDs 0 to 6) if absent.
channel_min_levelintOptionalChannels can use this palette only after reaching at least the boost level specified in this field.
group_min_levelintOptional

Type: help.PeerColorOption

Example:

$help_peerColorOption = ['_' => 'help.peerColorOption', 'hidden' => Bool, 'color_id' => int, 'colors' => help.PeerColorSet, 'dark_colors' => help.PeerColorSet, 'channel_min_level' => int, 'group_min_level' => int];