Ejemplo n.º 1
0
        public static void ReloadTimedActions()
        {
            IFindFluent <TimedAction, TimedAction> Mutes = TimedActions.Find(Builders <TimedAction> .Filter.Eq("Kind", "mute"));

            foreach (TimedAction mute in Mutes.ToEnumerable())
            {
                Muting.MutedUsers.Add(mute.GetDiscordId(), (mute.Start, mute.End));
                Muting.AwaitUnmute(Program.Guild.GetUser(mute.GetDiscordId()));
            }
        }