Migrate /raid to Helix. (#4029)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -58,6 +58,20 @@ enum UsernameDisplayMode : int {
|
||||
LocalizedName = 2, // Localized name
|
||||
UsernameAndLocalizedName = 3, // Username (Localized name)
|
||||
};
|
||||
|
||||
enum HelixTimegateOverride : int {
|
||||
// Use the default timegated behaviour
|
||||
// This means we use the old IRC command up until the migration date and
|
||||
// switch over to the Helix API only after the migration date
|
||||
Timegate = 1,
|
||||
|
||||
// Ignore timegating and always force use the IRC command
|
||||
AlwaysUseIRC = 2,
|
||||
|
||||
// Ignore timegating and always force use the Helix API
|
||||
AlwaysUseHelix = 3,
|
||||
};
|
||||
|
||||
/// Settings which are availlable for reading and writing on the gui thread.
|
||||
// These settings are still accessed concurrently in the code but it is bad practice.
|
||||
class Settings : public ABSettings, public ConcurrentSettings
|
||||
@@ -395,6 +409,12 @@ public:
|
||||
800,
|
||||
};
|
||||
|
||||
// Temporary time-gate-overrides
|
||||
EnumSetting<HelixTimegateOverride> helixTimegateRaid = {
|
||||
"/misc/twitch/helix-timegate/raid",
|
||||
HelixTimegateOverride::Timegate,
|
||||
};
|
||||
|
||||
IntSetting emotesTooltipPreview = {"/misc/emotesTooltipPreview", 1};
|
||||
BoolSetting openLinksIncognito = {"/misc/openLinksIncognito", 0};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user