Thresher 1.2 Class Documentation

Sender.Invite Method 

Invite a user to a channel.

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

Parameters

who
The nick of the person to invite
channel
The channel they are invited to join.

Remarks

The parameter nickname is the nickname of the person to be invited to the target channel channel. There is no requirement that the channel the target user is being invited to must exist or be a valid channel. However, if the channel exists, only members of the channel are allowed to invite other users. When the channel has invite-only flag set, only channel operators may an invite.

Only the user inviting and the user being invited will receive notification of the invitation. Other channel members are not notified. (This is unlike the mode changes, and is occasionally the source of trouble for users.)

After the invite is sent the IRC server will signal that it was correctly received by calling OnInviteSent.

Possible Errors

Exceptions

Exception TypeCondition
ArgumentExceptionIf the nickname or channel is not valid.

See Also

Sender Class | Sharkbite.Irc Namespace | OnInviteSent | OnInvite