23 lines
502 B
C#
23 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;
|
|
}
|
|
}
|
|
}
|