Skip to main content

GlobalSetting

GlobalSetting = GlobalSettingText | GlobalSettingNumber | GlobalSettingCheckbox | GlobalSettingRoleOrMember | GlobalSettingChannel | GlobalSettingChannelGroup | GlobalSettingSelect | GlobalSettingTimestamp | GlobalSettingTime | GlobalSettingDate | GlobalSettingColor

Union type representing any individual setting value. The actual type depends on the setting's type key declared in the manifest. For example, a roleOrMember setting produces a GlobalSettingRoleOrMember (ReadOnlyMemberGroup), while a checkbox produces a GlobalSettingCheckbox (boolean).

You don't typically work with this union directly. Instead, access settings by group and item key on rootServer.globalSettings, where the value is already the concrete type.