Invite a user to a channel.
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 ErrorsException Type | Condition |
---|---|
ArgumentException | If the nickname or channel is not valid. |
Sender Class | Sharkbite.Irc Namespace | OnInviteSent | OnInvite