From d6150a664f8eb54b4993bae613c8b16e0b0e7f5c Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Wed, 8 Jan 2025 14:25:58 -0500 Subject: [PATCH] fix(commands/tools/clear): check for ignore_ids --- commands/tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/tools.py b/commands/tools.py index 7b3a400..8f7f572 100644 --- a/commands/tools.py +++ b/commands/tools.py @@ -1,6 +1,7 @@ import re import arguments + import commands import utils @@ -81,7 +82,7 @@ async def clear(message): regex = re.compile(r, re.IGNORECASE if args.case_insensitive else 0) def check(m): - if m.id in args.ignore_ids: + if (ids := args.ignore_ids) and m.id in ids: return False c = [] if regex: