|
|
@@ -5,6 +5,9 @@ using EntryModel = Discord.API.AuditLogEntry; |
|
|
|
|
|
|
|
namespace Discord.Rest |
|
|
|
{ |
|
|
|
/// <summary> |
|
|
|
/// Contains audit log data related to the update of a permission overwrite. |
|
|
|
/// </summary> |
|
|
|
public class OverwriteUpdateAuditLogData : IAuditLogData |
|
|
|
{ |
|
|
|
private OverwriteUpdateAuditLogData(OverwritePermissions before, OverwritePermissions after, ulong targetId, PermissionTarget targetType) |
|
|
@@ -35,10 +38,35 @@ namespace Discord.Rest |
|
|
|
return new OverwriteUpdateAuditLogData(beforePermissions, afterPermissions, entry.Options.OverwriteTargetId.Value, target); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Gets the overwrite permissions before the changes. |
|
|
|
/// </summary> |
|
|
|
/// <returns> |
|
|
|
/// An overwrite permissions object representing the overwrite permissions that the overwrite had before |
|
|
|
/// the changes were made. |
|
|
|
/// </returns> |
|
|
|
public OverwritePermissions OldPermissions { get; } |
|
|
|
/// <summary> |
|
|
|
/// Gets the overwrite permissions after the changes. |
|
|
|
/// </summary> |
|
|
|
/// <returns> |
|
|
|
/// An overwrite permissions object representing the overwrite permissions that the overwrite now has after |
|
|
|
/// the changes. |
|
|
|
/// </returns> |
|
|
|
public OverwritePermissions NewPermissions { get; } |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Gets the snowflake ID of the overwrite that has been updated. |
|
|
|
/// </summary> |
|
|
|
/// <returns> |
|
|
|
/// A <see cref="ulong"/> representing the snowflake identifier of the overwrite that has been updated. |
|
|
|
/// </returns> |
|
|
|
public ulong OverwriteTargetId { get; } |
|
|
|
/// <summary> |
|
|
|
/// Gets the target of the updated permission overwrite. |
|
|
|
/// </summary> |
|
|
|
/// <returns> |
|
|
|
/// The target of the updated permission overwrite. |
|
|
|
/// </returns> |
|
|
|
public PermissionTarget OverwriteType { get; } |
|
|
|
} |
|
|
|
} |