NadekoBot/NadekoBot.Modules.Xp/Services/UserCacheItem.cs

22 lines
482 B
C#
Raw Normal View History

using Discord;
namespace NadekoBot.Modules.Xp.Services
2017-08-22 03:48:45 +00:00
{
public class UserCacheItem
{
public IGuildUser User { get; set; }
public IGuild Guild { get; set; }
public IMessageChannel Channel { get; set; }
2017-08-22 03:48:45 +00:00
public override int GetHashCode()
{
return User.GetHashCode();
2017-08-22 03:48:45 +00:00
}
public override bool Equals(object obj)
{
return obj is UserCacheItem uci && uci.User == User;
2017-08-22 03:48:45 +00:00
}
}
}