예제 #1
0
파일: ChannelData.cs 프로젝트: Miimik/test
        internal ChannelData(RestDiscordClient client, AuditLogEntryModel model, bool isCreated)
        {
            var changes = new ChannelChanges(client, model);

            if (isCreated)
            {
                Name       = changes.Name.NewValue;
                Topic      = changes.Topic.NewValue;
                Bitrate    = changes.Bitrate.NewValue;
                Overwrites = changes.Overwrites.NewValue;
                IsNsfw     = changes.IsNsfw.NewValue;
                Slowmode   = changes.Slowmode.NewValue;
                Type       = changes.Type.NewValue;
            }
            else
            {
                Name       = changes.Name.OldValue;
                Topic      = changes.Topic.OldValue;
                Bitrate    = changes.Bitrate.OldValue;
                Overwrites = changes.Overwrites.OldValue;
                IsNsfw     = changes.IsNsfw.OldValue;
                Slowmode   = changes.Slowmode.OldValue;
                Type       = changes.Type.OldValue;
            }
        }
예제 #2
0
 internal RestChannelUpdatedAuditLog(RestDiscordClient client, AuditLogModel log, AuditLogEntryModel entry) : base(client, log, entry)
 {
     Changes = new ChannelChanges(client, entry);
 }