Thresher 1.2 Class Documentation

Sender.Action Method 

Send an action message to a channel.

[Visual Basic]
Public Sub Action( _
   ByVal channel As String, _
   ByVal description As String _
)
[C#]
public void Action(
   string channel,
   string description
);

Parameters

channel
The target channel.
description
A description of the action. If this is too long it will be truncated.

Remarks

This is actually a CTCP command but it is so widely used that it is included here. These are the '\me Laughs' type messages.

Exceptions

Exception TypeCondition
ArgumentExceptionIf the channel name is not valid. Will also be thrown if the description is null or empty.

Example

            //Express an emotion...
            connection.Sender.Action("#thresher", "Kicks down the door" );
            

See Also

Sender Class | Sharkbite.Irc Namespace | OnAction