Ejemplo n.º 1
0
 public async Task <IEnumerable <ulong> > GetAllGuilds() => (await cosmos.GetMany(_ => true)).Select(c => c.GuildId);
Ejemplo n.º 2
0
        public async Task <IEnumerable <BanModel> > GetExpiredBans(ulong guildId)
        {
            var now = DateTime.UtcNow;

            return(await cosmos.GetMany(m => m.IsBanned && m.BannedUntil != null && m.BannedUntil < now));
        }