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

15 lines
394 B
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
using SharpChat.Users.Remote;
using System;
namespace SharpChat.Events {
[Event(TYPE)]
public class UserBanRemovedEvent : Event {
public const string TYPE = @"ban:remove:user";
public UserBanRemovedEvent(IRemoteUser remoteUser)
: base(
(remoteUser ?? throw new ArgumentNullException(nameof(remoteUser))).UserId
) { }
}
}