mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
* Add a check in Timely command that removes the reminder button if there already is a timely reminder in DB. * Add ReminderType in db/models. As well as migrations. * Set Normal reminders to be of `ReminderType.User`, and Timely reminders to be of `ReminderType.Timely`
19 lines
433 B
C#
19 lines
433 B
C#
#nullable disable
|
|
namespace NadekoBot.Services.Database.Models;
|
|
|
|
public class Reminder : DbEntity
|
|
{
|
|
public DateTime When { get; set; }
|
|
public ulong ChannelId { get; set; }
|
|
public ulong ServerId { get; set; }
|
|
public ulong UserId { get; set; }
|
|
public string Message { get; set; }
|
|
public bool IsPrivate { get; set; }
|
|
public ReminderType Type { get; set; }
|
|
}
|
|
|
|
public enum ReminderType
|
|
{
|
|
User,
|
|
Timely
|
|
} |