DLL - Twitch
by StreamUP
DLLProfile Picture
Gets the profile picture URL for a Twitch user from the provided arguments and user type.
cs
string GetTwitchProfilePicture(
IDictionary<string, object> sbArgs,
TwitchUserType userType
)Gets the profile picture URL for a Twitch user by username.
cs
string GetTwitchProfilePictureFromUsername(string userName)User Type Enum
Defines the types of Twitch users for profile picture retrieval.
cs
public enum TwitchUserType
{
userId = 0,
recipientId = 1,
createdById = 2,
targetUserId = 3,
broadcastUserId = 4,
}User Role
Returns the role ID for a user (1=Viewer, 2=VIP or Sub, 3=Mod, 4=Broadcaster).
cs
int GetUserRoleId()Value and Reward Utilities
Gets a Twitch value from trigger data and a code.
cs
double GetTwitchValue(TriggerData triggerData, string myCode)Refunds a Twitch reward, optionally specifying the product name.
cs
bool Refund(bool refund = false, string productName = "General")Fulfills a Twitch reward, optionally specifying the product name.
cs
bool Fulfill(bool fulfill = false, string productName = "General")Gets the reward ID for a given reward name.
cs
string GetRewardID(string name)