using System.Linq; namespace Maki { internal sealed class ServerManager : BaseManager { 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; } } }