| @@ -50,7 +50,7 @@ namespace Discord.Rest | |||||
| /// Gets the snowflake ID of the created channel. | /// Gets the snowflake ID of the created channel. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// An <see cref="ulong"/> representing the snowflake identifier for the created channel. | |||||
| /// A <see cref="ulong"/> representing the snowflake identifier for the created channel. | |||||
| /// </returns> | /// </returns> | ||||
| public ulong ChannelId { get; } | public ulong ChannelId { get; } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -41,7 +41,7 @@ namespace Discord.Rest | |||||
| /// Gets the snowflake ID of the deleted channel. | /// Gets the snowflake ID of the deleted channel. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// An <see cref="ulong"/> representing the snowflake identifier for the deleted channel. | |||||
| /// A <see cref="ulong"/> representing the snowflake identifier for the deleted channel. | |||||
| /// </returns> | /// </returns> | ||||
| public ulong ChannelId { get; } | public ulong ChannelId { get; } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -45,10 +45,22 @@ namespace Discord.Rest | |||||
| /// Gets the snowflake ID of the updated channel. | /// Gets the snowflake ID of the updated channel. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// An <see cref="ulong"/> representing the snowflake identifier for the updated channel. | |||||
| /// A <see cref="ulong"/> representing the snowflake identifier for the updated channel. | |||||
| /// </returns> | /// </returns> | ||||
| public ulong ChannelId { get; } | public ulong ChannelId { get; } | ||||
| /// <summary> | |||||
| /// Gets the channel information before the changes. | |||||
| /// </summary> | |||||
| /// <returns> | |||||
| /// An information object containing the original channel information before the changes were made. | |||||
| /// </returns> | |||||
| public ChannelInfo Before { get; } | public ChannelInfo Before { get; } | ||||
| /// <summary> | |||||
| /// Gets the channel information after the changes. | |||||
| /// </summary> | |||||
| /// <returns> | |||||
| /// An information object containing the channel information after the changes were made. | |||||
| /// </returns> | |||||
| public ChannelInfo After { get; } | public ChannelInfo After { get; } | ||||
| } | } | ||||
| } | } | ||||
| @@ -28,7 +28,7 @@ namespace Discord.Rest | |||||
| /// Gets the snowflake ID of the created emoji. | /// Gets the snowflake ID of the created emoji. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// An <see cref="System.UInt64"/> representing the snowflake identifier for the created emoji. | |||||
| /// A <see cref="System.UInt64"/> representing the snowflake identifier for the created emoji. | |||||
| /// </returns> | /// </returns> | ||||
| public ulong EmoteId { get; } | public ulong EmoteId { get; } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -29,7 +29,7 @@ namespace Discord.Rest | |||||
| /// Gets the snowflake ID of the deleted emoji. | /// Gets the snowflake ID of the deleted emoji. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// An <see cref="System.UInt64"/> representing the snowflake identifier for the deleted emoji. | |||||
| /// A <see cref="System.UInt64"/> representing the snowflake identifier for the deleted emoji. | |||||
| /// </returns> | /// </returns> | ||||
| public ulong EmoteId { get; } | public ulong EmoteId { get; } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -31,7 +31,7 @@ namespace Discord.Rest | |||||
| /// Gets the snowflake ID of the updated emoji. | /// Gets the snowflake ID of the updated emoji. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// An <see cref="System.UInt64"/> representing the snowflake identifier of the updated emoji. | |||||
| /// A <see cref="ulong"/> representing the snowflake identifier of the updated emoji. | |||||
| /// </returns> | /// </returns> | ||||
| public ulong EmoteId { get; } | public ulong EmoteId { get; } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -38,7 +38,7 @@ namespace Discord.Rest | |||||
| /// Gets the ID of the AFK voice channel for this guild. | /// Gets the ID of the AFK voice channel for this guild. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// An <see cref="ulong"/> representing the snowflake identifier of the AFK voice channel; <c>null</c> if | |||||
| /// A <see cref="ulong"/> representing the snowflake identifier of the AFK voice channel; <c>null</c> if | |||||
| /// none is set. | /// none is set. | ||||
| /// </returns> | /// </returns> | ||||
| public ulong? AfkChannelId { get; } | public ulong? AfkChannelId { get; } | ||||
| @@ -81,7 +81,7 @@ namespace Discord.Rest | |||||
| /// Gets the ID of the channel this invite is linked to. | /// Gets the ID of the channel this invite is linked to. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// An <see cref="ulong"/> representing the channel snowflake identifier that the invite points to. | |||||
| /// A <see cref="ulong"/> representing the channel snowflake identifier that the invite points to. | |||||
| /// </returns> | /// </returns> | ||||
| public ulong ChannelId { get; } | public ulong ChannelId { get; } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -81,7 +81,7 @@ namespace Discord.Rest | |||||
| /// Gets the ID of the channel this invite is linked to. | /// Gets the ID of the channel this invite is linked to. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// An <see cref="ulong"/> representing the channel snowflake identifier that the invite points to. | |||||
| /// A <see cref="ulong"/> representing the channel snowflake identifier that the invite points to. | |||||
| /// </returns> | /// </returns> | ||||
| public ulong ChannelId { get; } | public ulong ChannelId { get; } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -42,7 +42,7 @@ namespace Discord.Rest | |||||
| /// Gets the ID of the channel this invite is linked to. | /// Gets the ID of the channel this invite is linked to. | ||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// An <see cref="ulong"/> representing the channel snowflake identifier that the invite points to; | |||||
| /// A <see cref="ulong"/> representing the channel snowflake identifier that the invite points to; | |||||
| /// <c>null</c> if not specified. | /// <c>null</c> if not specified. | ||||
| /// </returns> | /// </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> | |||||
| /// Represents a piece of audit log data relating to an invite update. | |||||
| /// </summary> | |||||
| public class InviteUpdateAuditLogData : IAuditLogData | public class InviteUpdateAuditLogData : IAuditLogData | ||||
| { | { | ||||
| private InviteUpdateAuditLogData(InviteInfo before, InviteInfo after) | private InviteUpdateAuditLogData(InviteInfo before, InviteInfo after) | ||||
| @@ -40,7 +43,19 @@ namespace Discord.Rest | |||||
| return new InviteUpdateAuditLogData(before, after); | return new InviteUpdateAuditLogData(before, after); | ||||
| } | } | ||||
| /// <summary> | |||||
| /// Gets the invite information before the changes. | |||||
| /// </summary> | |||||
| /// <returns> | |||||
| /// An information object containing the original invite information before the changes were made. | |||||
| /// </returns> | |||||
| public InviteInfo Before { get; } | public InviteInfo Before { get; } | ||||
| /// <summary> | |||||
| /// Gets the invite information after the changes. | |||||
| /// </summary> | |||||
| /// <returns> | |||||
| /// An information object containing the invite information after the changes were made. | |||||
| /// </returns> | |||||
| public InviteInfo After { get; } | public InviteInfo After { get; } | ||||
| } | } | ||||
| } | } | ||||
| @@ -5,6 +5,9 @@ using EntryModel = Discord.API.AuditLogEntry; | |||||
| namespace Discord.Rest | namespace Discord.Rest | ||||
| { | { | ||||
| /// <summary> | |||||
| /// Represents a piece of audit log data related to a kick. | |||||
| /// </summary> | |||||
| public class KickAuditLogData : IAuditLogData | public class KickAuditLogData : IAuditLogData | ||||
| { | { | ||||
| private KickAuditLogData(RestUser user) | private KickAuditLogData(RestUser user) | ||||
| @@ -18,6 +21,12 @@ namespace Discord.Rest | |||||
| return new KickAuditLogData(RestUser.Create(discord, userInfo)); | return new KickAuditLogData(RestUser.Create(discord, userInfo)); | ||||
| } | } | ||||
| /// <summary> | |||||
| /// Gets the user that was kicked. | |||||
| /// </summary> | |||||
| /// <returns> | |||||
| /// A user object representing the kicked user. | |||||
| /// </returns> | |||||
| public IUser Target { get; } | public IUser Target { get; } | ||||
| } | } | ||||
| } | } | ||||
| @@ -6,6 +6,9 @@ using EntryModel = Discord.API.AuditLogEntry; | |||||
| namespace Discord.Rest | namespace Discord.Rest | ||||
| { | { | ||||
| /// <summary> | |||||
| /// A piece of audit log data related to a change in a guild member's roles. | |||||
| /// </summary> | |||||
| public class MemberRoleAuditLogData : IAuditLogData | public class MemberRoleAuditLogData : IAuditLogData | ||||
| { | { | ||||
| private MemberRoleAuditLogData(IReadOnlyCollection<MemberRoleEditInfo> roles, IUser target) | private MemberRoleAuditLogData(IReadOnlyCollection<MemberRoleEditInfo> roles, IUser target) | ||||
| @@ -29,7 +32,19 @@ namespace Discord.Rest | |||||
| return new MemberRoleAuditLogData(roleInfos.ToReadOnlyCollection(), user); | return new MemberRoleAuditLogData(roleInfos.ToReadOnlyCollection(), user); | ||||
| } | } | ||||
| /// <summary> | |||||
| /// Gets a collection of role changes that were performed on the member. | |||||
| /// </summary> | |||||
| /// <returns> | |||||
| /// A read-only collection of <see cref="MemberRoleEditInfo"/>. | |||||
| /// </returns> | |||||
| public IReadOnlyCollection<MemberRoleEditInfo> Roles { get; } | public IReadOnlyCollection<MemberRoleEditInfo> Roles { get; } | ||||
| /// <summary> | |||||
| /// Gets the user that the roles changes were performed on. | |||||
| /// </summary> | |||||
| /// <returns> | |||||
| /// A user object representing the user that the role changes were performed on. | |||||
| /// </returns> | |||||
| public IUser Target { get; } | public IUser Target { get; } | ||||
| } | } | ||||
| } | } | ||||
| @@ -1,5 +1,8 @@ | |||||
| namespace Discord.Rest | namespace Discord.Rest | ||||
| { | { | ||||
| /// <summary> | |||||
| /// An information object representing a change in one of a member's roles. | |||||
| /// </summary> | |||||
| public struct MemberRoleEditInfo | public struct MemberRoleEditInfo | ||||
| { | { | ||||
| internal MemberRoleEditInfo(string name, ulong roleId, bool added) | internal MemberRoleEditInfo(string name, ulong roleId, bool added) | ||||
| @@ -9,8 +12,26 @@ namespace Discord.Rest | |||||
| Added = added; | Added = added; | ||||
| } | } | ||||
| /// <summary> | |||||
| /// Gets the name of the role that was changed. | |||||
| /// </summary> | |||||
| /// <returns> | |||||
| /// A string containing the name of the role that was changed. | |||||
| /// </returns> | |||||
| public string Name { get; } | public string Name { get; } | ||||
| /// <summary> | |||||
| /// Gets the ID of the role that was changed. | |||||
| /// </summary> | |||||
| /// <returns> | |||||
| /// A <see cref="ulong"/> representing the snowflake identifier of the role that was changed. | |||||
| /// </returns> | |||||
| public ulong RoleId { get; } | public ulong RoleId { get; } | ||||
| /// <summary> | |||||
| /// Determines whether the role was added to the user. | |||||
| /// </summary> | |||||
| /// <returns> | |||||
| /// <c>true</c> if the role was added to the user; otherwise <c>false</c>. | |||||
| /// </returns> | |||||
| public bool Added { get; } | public bool Added { get; } | ||||
| } | } | ||||
| } | } | ||||