/// <summary> /// Gets the hash code for this <see cref="CommandCooldownBucket"/>. /// </summary> /// <returns>The hash code for this <see cref="CommandCooldownBucket"/>.</returns> public override int GetHashCode() { int hash = 13; hash = (hash * 7) + UserId.GetHashCode(); hash = (hash * 7) + ChannelId.GetHashCode(); hash = (hash * 7) + GuildId.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { var hashCode = Key != null?Key.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (int)KeyScope; hashCode = (hashCode * 397) ^ ForumUserId.GetHashCode(); hashCode = (hashCode * 397) ^ DiscordUserId.GetHashCode(); hashCode = (hashCode * 397) ^ GuildId.GetHashCode(); hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode(); return(hashCode); } }
public override int GetHashCode() => GuildId.GetHashCode();