Пример #1
0
        internal OverwriteData(RestDiscordClient client, AuditLogEntryModel model, bool isCreated)
        {
            var changes = new OverwriteChanges(client, model);

            if (isCreated)
            {
                TargetId   = changes.TargetId.NewValue;
                TargetType = changes.TargetType.NewValue;
                Allowed    = changes.Allowed.NewValue;
                Denied     = changes.Denied.NewValue;
            }
            else
            {
                TargetId   = changes.TargetId.OldValue;
                TargetType = changes.TargetType.OldValue;
                Allowed    = changes.Allowed.OldValue;
                Denied     = changes.Denied.OldValue;
            }
        }
Пример #2
0
 internal RestOverwriteUpdatedAuditLog(RestDiscordClient client, AuditLogModel log, AuditLogEntryModel entry) : base(client, log, entry)
 {
     Changes = new OverwriteChanges(client, entry);
 }