Skip to content

Commit eb997d2

Browse files
committed
Fix false error message when deleting reminders with duplicate IDs
1 parent ec907f0 commit eb997d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bot/exts/utils/reminders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ async def delete_reminder(self, ctx: Context, ids: Greedy[int]) -> None:
678678
title = random.choice(POSITIVE_REPLIES)
679679
deletion_message = f"Successfully deleted the following reminder(s): {', '.join(deleted_ids)}"
680680

681-
if len(deleted_ids) != len(ids):
681+
if len(deleted_ids) != len(set(ids)):
682682
deletion_message += (
683683
"\n\nThe other reminder(s) could not be deleted as they're either locked, "
684684
"belong to someone else, or don't exist."

0 commit comments

Comments
 (0)