@@ -71,7 +71,8 @@ namespace Discord.Rest | |||||
/// Gets a collection of permission overwrites that was assigned to the created channel. | /// Gets a collection of permission overwrites that was assigned to the created channel. | ||||
/// </summary> | /// </summary> | ||||
/// <returns> | /// <returns> | ||||
/// A collection of permission <see cref="Overwrite"/>. | |||||
/// A collection of permission <see cref="Overwrite"/>, containing the permission overwrites that were | |||||
/// assigned to the created channel. | |||||
/// </returns> | /// </returns> | ||||
public IReadOnlyCollection<Overwrite> Overwrites { get; } | public IReadOnlyCollection<Overwrite> Overwrites { get; } | ||||
} | } | ||||
@@ -36,7 +36,8 @@ namespace Discord.Rest | |||||
/// Gets a collection of role changes that were performed on the member. | /// Gets a collection of role changes that were performed on the member. | ||||
/// </summary> | /// </summary> | ||||
/// <returns> | /// <returns> | ||||
/// A read-only collection of <see cref="MemberRoleEditInfo"/>, containing the changes | |||||
/// A read-only collection of <see cref="MemberRoleEditInfo"/>, containing the roles that were changed on | |||||
/// this user. | |||||
/// </returns> | /// </returns> | ||||
public IReadOnlyCollection<MemberRoleEditInfo> Roles { get; } | public IReadOnlyCollection<MemberRoleEditInfo> Roles { get; } | ||||
/// <summary> | /// <summary> | ||||
@@ -30,8 +30,26 @@ namespace Discord.Rest | |||||
return new MemberUpdateAuditLogData(user, newNick, oldNick); | return new MemberUpdateAuditLogData(user, newNick, oldNick); | ||||
} | } | ||||
/// <summary> | |||||
/// Gets the user that the changes were performed on. | |||||
/// </summary> | |||||
/// <returns> | |||||
/// A user object representing the user who the changes were performed on. | |||||
/// </returns> | |||||
public IUser Target { get; } | public IUser Target { get; } | ||||
/// <summary> | |||||
/// Gets the new nickname of the user. | |||||
/// </summary> | |||||
/// <returns> | |||||
/// A string containing the new nickname of the user; <c>null</c> if the user no longer has a nickname. | |||||
/// </returns> | |||||
public string NewNick { get; } | public string NewNick { get; } | ||||
/// <summary> | |||||
/// Gets the old nickname of the user. | |||||
/// </summary> | |||||
/// <returns> | |||||
/// A string containing the old nickname of the user; <c>null</c> if the user did not have a nickname. | |||||
/// </returns> | |||||
public string OldNick { get; } | public string OldNick { get; } | ||||
} | } | ||||
} | } |
@@ -3,6 +3,9 @@ using EntryModel = Discord.API.AuditLogEntry; | |||||
namespace Discord.Rest | namespace Discord.Rest | ||||
{ | { | ||||
/// <summary> | |||||
/// Contains audit log data related to message deletion(s). | |||||
/// </summary> | |||||
public class MessageDeleteAuditLogData : IAuditLogData | public class MessageDeleteAuditLogData : IAuditLogData | ||||
{ | { | ||||
private MessageDeleteAuditLogData(ulong channelId, int count) | private MessageDeleteAuditLogData(ulong channelId, int count) | ||||
@@ -16,7 +19,20 @@ namespace Discord.Rest | |||||
return new MessageDeleteAuditLogData(entry.Options.MessageDeleteChannelId.Value, entry.Options.MessageDeleteCount.Value); | return new MessageDeleteAuditLogData(entry.Options.MessageDeleteChannelId.Value, entry.Options.MessageDeleteCount.Value); | ||||
} | } | ||||
/// <summary> | |||||
/// Gets the number of messages that were deleted. | |||||
/// </summary> | |||||
/// <returns> | |||||
/// An <see cref="int"/> representing the number of messages that were deleted from the channel. | |||||
/// </returns> | |||||
public int MessageCount { get; } | public int MessageCount { get; } | ||||
/// <summary> | |||||
/// Gets the ID of the channel that the messages were deleted from. | |||||
/// </summary> | |||||
/// <returns> | |||||
/// A <see cref="ulong"/> representing the snowflake identifer for the channel that the messages were | |||||
/// deleted from. | |||||
/// </returns> | |||||
public ulong ChannelId { get; } | public ulong ChannelId { get; } | ||||
} | } | ||||
} | } |
@@ -5,6 +5,9 @@ using EntryModel = Discord.API.AuditLogEntry; | |||||
namespace Discord.Rest | namespace Discord.Rest | ||||
{ | { | ||||
/// <summary> | |||||
/// Contains audit log data for a permissions overwrite creation. | |||||
/// </summary> | |||||
public class OverwriteCreateAuditLogData : IAuditLogData | public class OverwriteCreateAuditLogData : IAuditLogData | ||||
{ | { | ||||
private OverwriteCreateAuditLogData(Overwrite overwrite) | private OverwriteCreateAuditLogData(Overwrite overwrite) | ||||
@@ -32,6 +35,12 @@ namespace Discord.Rest | |||||
return new OverwriteCreateAuditLogData(new Overwrite(id, target, permissions)); | return new OverwriteCreateAuditLogData(new Overwrite(id, target, permissions)); | ||||
} | } | ||||
/// <summary> | |||||
/// Gets the permission overwrite object that was created. | |||||
/// </summary> | |||||
/// <returns> | |||||
/// An <see cref="Overwrite"/> object representing the overwrite that was created. | |||||
/// </returns> | |||||
public Overwrite Overwrite { get; } | public Overwrite Overwrite { get; } | ||||
} | } | ||||
} | } |
@@ -5,6 +5,9 @@ using EntryModel = Discord.API.AuditLogEntry; | |||||
namespace Discord.Rest | namespace Discord.Rest | ||||
{ | { | ||||
/// <summary> | |||||
/// Contains audit log data related to the deletion of a permission overwrite. | |||||
/// </summary> | |||||
public class OverwriteDeleteAuditLogData : IAuditLogData | public class OverwriteDeleteAuditLogData : IAuditLogData | ||||
{ | { | ||||
private OverwriteDeleteAuditLogData(Overwrite deletedOverwrite) | private OverwriteDeleteAuditLogData(Overwrite deletedOverwrite) | ||||
@@ -31,6 +34,12 @@ namespace Discord.Rest | |||||
return new OverwriteDeleteAuditLogData(new Overwrite(id, target, new OverwritePermissions(allow, deny))); | return new OverwriteDeleteAuditLogData(new Overwrite(id, target, new OverwritePermissions(allow, deny))); | ||||
} | } | ||||
/// <summary> | |||||
/// Gets the permission overwrite object that was deleted. | |||||
/// </summary> | |||||
/// <returns> | |||||
/// An <see cref="Overwrite"/> object representing the overwrite that was deleted. | |||||
/// </returns> | |||||
public Overwrite Overwrite { get; } | public Overwrite Overwrite { get; } | ||||
} | } | ||||
} | } |