2021-07-21 09:48:23 -04:00

37 lines
808 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace NerdsTeaserBot.Modules.Models
{
[Serializable]
public class Mute
{
public bool IsMuted
{
get
{
bool ret = release < DateTime.Now;
if (unmute != null) if (unmute.moderator != default) ret |= unmute.time < DateTime.Now;
return !ret;
}
}
public ulong moderator;
public string reason;
public DateTime release;
public DateTime start;
public Unmute unmute;
[Serializable]
public class Unmute
{
public ulong moderator;
public string reason;
public DateTime time;
}
}
}