sharp-chat/SharpChat/Packet/UserChannelForceJoinPacket.cs

15 lines
442 B
C#

using System;
namespace SharpChat.Packet {
public class UserChannelForceJoinPacket : ServerPacket {
private readonly string ChannelName;
public UserChannelForceJoinPacket(string channelName) {
ChannelName = channelName ?? throw new ArgumentNullException(nameof(channelName));
}
public override string Pack() {
return string.Format("5\t2\t{0}", ChannelName);
}
}
}