Esempio n. 1
0
        public Task <ActionResult> BaseAsync(
            [Description("The time, from now, to set the reminder for.")]
            TimeSpan timeFromNow,
            [Description("What you wanted to be reminded of."), Remainder]
            string reminder)
        {
            var end = Context.Now.Add(timeFromNow);

            Db.CreateReminder(Reminder.CreateFrom(Context, end, reminder));
            return(Ok($"I'll remind you {end.GetDiscordTimestamp(TimestampType.LongDateTime)} ({end.GetDiscordTimestamp(TimestampType.Relative)})."));
        }