C# Class StreamActions.Attributes.WhisperCommandAttribute

Inheritance: StreamActions.Attributes.CommandAttribute
显示文件 Open project: StreamActions/StreamActions

Public Methods

Method Description
WhisperCommandAttribute ( string command, UserLevels permission ) : StreamActions.Enums

Marks the method as being the whisper handler for a !command.

WhisperCommandAttribute ( string command, string subcommand, UserLevels permission ) : StreamActions.Enums

Marks the method as being the whisper handler for a !command subcommand.

Method Details

WhisperCommandAttribute() public method

Marks the method as being the whisper handler for a !command.
public WhisperCommandAttribute ( string command, UserLevels permission ) : StreamActions.Enums
command string The command to detect.
permission UserLevels The default permission required to use the command.
return StreamActions.Enums

WhisperCommandAttribute() public method

Marks the method as being the whisper handler for a !command subcommand.
public WhisperCommandAttribute ( string command, string subcommand, UserLevels permission ) : StreamActions.Enums
command string The command to detect.
subcommand string The subcommand to detect.
permission UserLevels The default permission required to use the subcommand.
return StreamActions.Enums