Implemented IComparable<T> on IRole and IGuildUUser
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user