Implemented IComparable<T> on IRole and IGuildUUser

This commit is contained in:
james7132
2016-10-25 21:37:18 +00:00
parent 9fcf88b7ac
commit f3cd96d2fe
7 changed files with 23 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ using System.Threading.Tasks;
namespace Discord
{
public interface IRole : ISnowflakeEntity, IDeletable, IMentionable
public interface IRole : ISnowflakeEntity, IDeletable, IMentionable, IComparable<IRole>
{
/// <summary> Gets the guild owning this role.</summary>
IGuild Guild { get; }
@@ -27,4 +27,4 @@ namespace Discord
///// <summary> Modifies this role. </summary>
Task ModifyAsync(Action<ModifyGuildRoleParams> func, RequestOptions options = null);
}
}
}

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Discord
{
/// <summary> A Guild-User pairing. </summary>
public interface IGuildUser : IUser, IVoiceState
public interface IGuildUser : IUser, IVoiceState, IComparable<IGuildUser>
{
/// <summary> Gets when this user joined this guild. </summary>
DateTimeOffset? JoinedAt { get; }