Add timely reminder button*

* 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`
This commit is contained in:
Cata
2023-08-20 13:28:16 +00:00
committed by Kwoth
parent 3c3d082112
commit cdf9adc8a4
15 changed files with 10478 additions and 19 deletions

View File

@@ -232,7 +232,8 @@ public class RemindService : INService, IReadyExecutor, IRemindService
ulong? guildId,
bool isPrivate,
DateTime time,
string message)
string message,
ReminderType reminderType)
{
var rem = new Reminder
{
@@ -242,6 +243,7 @@ public class RemindService : INService, IReadyExecutor, IRemindService
IsPrivate = isPrivate,
When = time,
Message = message,
Type = reminderType
};
await using var ctx = _db.GetDbContext();