From f70e49fc6a4199958899770751a34a1f042bdace Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 9 Dec 2021 02:07:03 +0100 Subject: [PATCH] Removed unwanted command --- .../Modules/Utility/RemindCommands.cs | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/src/NadekoBot/Modules/Utility/RemindCommands.cs b/src/NadekoBot/Modules/Utility/RemindCommands.cs index ed4c8aa9c..e2dd92941 100644 --- a/src/NadekoBot/Modules/Utility/RemindCommands.cs +++ b/src/NadekoBot/Modules/Utility/RemindCommands.cs @@ -195,37 +195,6 @@ namespace NadekoBot.Modules.Utility await ReplyConfirmLocalizedAsync(strs.reminder_deleted(index + 1)); } } - - [NadekoCommand, Aliases] - public async Task ServerRemindDelete(int index) - { - if (--index < 0) - return; - - Reminder rem = null; - using (var uow = _db.GetDbContext()) - { - var rems = uow.Reminders - .RemindersForServer(ctx.Guild.Id, index / 10) - .ToList(); - var pageIndex = index % 10; - if (rems.Count > pageIndex) - { - rem = rems[pageIndex]; - uow.Reminders.Remove(rem); - uow.SaveChanges(); - } - } - - if (rem is null) - { - await ReplyErrorLocalizedAsync(strs.reminder_not_exist).ConfigureAwait(false); - } - else - { - await ReplyConfirmLocalizedAsync(strs.reminder_deleted(index + 1)); - } - } private async Task RemindInternal(ulong targetId, bool isPrivate, TimeSpan ts, string message) {