Table of Contents

Class TwitchModInfo

Namespace
ONITwitchLib
Assembly
ONITwitchLib.dll

Various information about the Twitch mod, primarily for integrations.

[PublicAPI]
public static class TwitchModInfo
Inheritance
TwitchModInfo
Inherited Members

Fields

ConfigFolder

The folder that holds the config for the mod. Only valid if the Twitch mod is active.

[PublicAPI]
public static readonly string ConfigFolder

Field Value

string

ConfigName

The filename of the config file containing the main Twitch mod config.

[PublicAPI]
public const string ConfigName = "config.json"

Field Value

string

ConfigPath

The path to the config file containing the main Twitch mod config. Only valid if the Twitch mod is active.

[PublicAPI]
public static readonly string ConfigPath

Field Value

string

MainModFolder

The mod folder containing the Twitch mod dll. Only valid if the Twitch mod is active.

[PublicAPI]
public static readonly string MainModFolder

Field Value

string

ModPrefix

The prefix that the twitch mod uses for IDs, with a few exceptions

[PublicAPI]
public const string ModPrefix = "ONITwitch."

Field Value

string

StaticID

The static ID of the Twitch mod.

[PublicAPI]
public const string StaticID = "asquared31415.TwitchIntegration"

Field Value

string

Properties

MainTwitchModType

The Type for the main Twitch mod's UserMod2, if it exists. null if it cannot be found. Safe to access even if the Twitch mod is not installed or active.

[PublicAPI]
[CanBeNull]
public static Type MainTwitchModType { get; }

Property Value

Type

TwitchIsPresent

True if the Twitch mod has been detected, false otherwise. Safe to access even if the Twitch mod is not installed or active.

[PublicAPI]
public static bool TwitchIsPresent { get; }

Property Value

bool