Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/ServerManager.cs

24 lines
502 B
C#

using System.Linq;
namespace Maki
{
internal sealed class ServerManager : BaseManager<DiscordServer>
{
internal ServerManager()
{
}
public DiscordServer Id(ulong id)
{
lock (Collection)
return Collection.Where(x => x.Id == id).FirstOrDefault();
}
public bool Exists(ulong id)
{
lock (Collection)
return Collection.Where(x => x.Id == id).Count() > 0;
}
}
}