GetActions

Returns a list of action data for all available actions

Signature

public List<ActionData> GetActions()

Parameters

No parameters.

Return Type

List<Streamer.bot.Plugin.Interface.Model.ActionData>

Example

using System;
using System.Collections.Generic;
public class CPHInline
{
    public bool Execute()
    {
        //Get list of actions
        List<ActionData> actionList = CPH.GetActions();         
        //Example to go through list and write them to logfile
        foreach(ActionData action in actionList)
        {
            //Get id of current action var.
            //Due to it being Guid type need to convert to string.
            string id = action.Id.ToString();
            //Get name of current action var
            string name = action.Name;
            //Write to log
            CPH.LogInfo($"ActionId:{id}, Action Name: {name}");
        }
        return true;
    }
}