public MethodPreCommandTrigger(IrcBotPlugin <T> plugin, PreCommandAttribute attribute, MethodInfo method) : base(plugin, attribute) { Method = method; if (method.ReturnType == typeof(bool)) { ReturnsBool = true; } else if (method.ReturnType != typeof(void)) { throw new Exception("method has to return either void or bool"); } }
public PreCommandTrigger(IrcBotPlugin <T> plugin, PreCommandAttribute attribute) : base(plugin) { Attribute = attribute; }
public PropertyPreCommandTrigger(IrcBotPlugin <T> plugin, PreCommandAttribute attribute, PropertyInfo property) : base(plugin, attribute) { Property = property; }