Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Changed Emote GetHashCode to not include Name #1317

Merged
merged 1 commit into from
Jun 4, 2019

Conversation

cabral-tiago
Copy link
Contributor

Continuation of commit abf3e90 attempt to fix Emote comparisons, as Hash comparisons are done before Equals in Comparers

Continuation of commit abf3e90 attempt to fix Emote comparisons,
as Hash comparisons are done before Equals in Comparers
return (Name.GetHashCode() * 397) ^ Id.GetHashCode();
}
}
public override int GetHashCode() => Id.GetHashCode();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public override int GetHashCode()
    => Id.GetHashCode();

Style change to be consistent with the rest of the lib.

@foxbot foxbot merged commit 1b54883 into discord-net:dev Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants