You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

MediatrCreatingMessageNotification.cs 373 B

12345678910111213141516
  1. // MessageReceivedNotification.cs
  2. using Discord.WebSocket;
  3. using MediatR;
  4. namespace MediatRSample.Notifications;
  5. public class MessageReceivedNotification : INotification
  6. {
  7. public MessageReceivedNotification(SocketMessage message)
  8. {
  9. Message = message ?? throw new ArgumentNullException(nameof(message));
  10. }
  11. public SocketMessage Message { get; }
  12. }