Thresher 1.2 Class Documentation

Sender.Join Method (String)

Join the specified channel.

[Visual Basic]
Overloads Public Sub Join( _
   ByVal channel As String _
)
[C#]
public void Join(
   string channel
);

Parameters

channel
The channel to join. Channel names must begin with '&', '#', '+' or '!'.

Remarks

Once a user has joined a channel, he receives information about all commands his server receives affecting the channel. This includes JOIN, MODE, KICK, PART, QUIT and of course PRIVMSG/NOTICE. This allows channel members to keep track of the other channel members, as well as channel modes.

If a JOIN is successful, the user receives a JOIN message as confirmation and is then sent the channel's topic ( OnTopicRequest and the list of users who are on the channel ( OnNames ), which MUST include the user joining.

Possible Errors

Exceptions

Exception TypeCondition
ArgumentExceptionIf the channel name is not valid.

Example

            //Most channels you will see begin with the '#'. The others are reserved
            //for special channels and may not even be available on a particular server.
            connection.Sender.Join("#thresher");
            

See Also

Sender Class | Sharkbite.Irc Namespace | Sender.Join Overload List | OnJoin