sharp-chat/SharpChat.Common/Events/BroadcastMessageEvent.cs

16 lines
409 B
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
using SharpChat.Users;
using System;
namespace SharpChat.Events {
[Event(TYPE)]
public class BroadcastMessageEvent : Event {
public const string TYPE = @"broadcast:message";
public string Text { get; }
public BroadcastMessageEvent(ChatBot chatBot, string text) : base(chatBot) {
Text = text ?? throw new ArgumentNullException(nameof(text));
}
}
}