Browse Source

Fix visual studio's complaining

pull/181/head
Finite Reality 9 years ago
parent
commit
8b8d3f7684
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/Discord.Net/Rest/Entities/Roles/Role.cs

+ 6
- 1
src/Discord.Net/Rest/Entities/Roles/Role.cs View File

@@ -65,12 +65,17 @@ namespace Discord
else return Equals(otherAsRole);
}

public bool Equals(Role other)
public bool Equals(IRole other)
{
if (other == null) return false;
else return (Id.Equals(other.Id));
}

public override int GetHashCode()
{
return base.GetHashCode();
}

public Role Clone() => MemberwiseClone() as Role;
public override string ToString() => Name;


Loading…
Cancel
Save