sharp-chat/SharpChat/Packet/UserChannelForceJoinPacket.cs
flashwave e17aed7c25
Switched to Index brand random Snowflakes instead of SharpIds.
If you were still handling message ids as integers in an environment that can't handle signed 64-bit integers you're going to be having a fun time after this update!
2025-04-25 20:05:57 +00:00

19 lines
549 B
C#

using System.Text;
namespace SharpChat.Packet {
public class UserChannelForceJoinPacket(ChatChannel channel) : IServerPacket {
public ChatChannel Channel { get; private set; } = channel ?? throw new ArgumentNullException(nameof(channel));
public IEnumerable<string> Pack() {
StringBuilder sb = new();
sb.Append('5');
sb.Append('\t');
sb.Append('2');
sb.Append('\t');
sb.Append(Channel.Name);
yield return sb.ToString();
}
}
}