Пример #1
0
 public AutoModerationEventView(AutoModerationEvent autoModerationEvent)
 {
     Id                   = autoModerationEvent.Id;
     GuildId              = autoModerationEvent.GuildId.ToString();
     AutoModerationType   = autoModerationEvent.AutoModerationType;
     AutoModerationAction = autoModerationEvent.AutoModerationAction;
     UserId               = autoModerationEvent.UserId.ToString();
     Username             = autoModerationEvent.Username;
     Nickname             = autoModerationEvent.Nickname;
     Discriminator        = autoModerationEvent.Discriminator;
     MessageId            = autoModerationEvent.MessageId.ToString();
     MessageContent       = autoModerationEvent.MessageContent;
     CreatedAt            = autoModerationEvent.CreatedAt;
     AssociatedCaseId     = autoModerationEvent.AssociatedCaseId;
 }
 public AutoModerationEventExpandedView(AutoModerationEvent moderationEvent, IUser suspect)
 {
     AutoModerationEvent = new AutoModerationEventView(moderationEvent);
     Suspect             = DiscordUserView.CreateOrDefault(suspect);
 }