NadekoBot/NadekoBot.Modules.Xp/Services/UserCacheItem.cs
2017-09-30 00:46:33 +02:00

22 lines
482 B
C#

using Discord;
namespace NadekoBot.Modules.Xp.Services
{
public class UserCacheItem
{
public IGuildUser User { get; set; }
public IGuild Guild { get; set; }
public IMessageChannel Channel { get; set; }
public override int GetHashCode()
{
return User.GetHashCode();
}
public override bool Equals(object obj)
{
return obj is UserCacheItem uci && uci.User == User;
}
}
}