From fa223e22ed419b8d76724e6d9dc5d86346b0eddb Mon Sep 17 00:00:00 2001 From: Redjumpman Date: Sun, 3 Feb 2019 18:22:01 -0500 Subject: [PATCH] [Utils] Fix for MessagePredicate.lower_contained_in (#2399) Added a missing str.lower() method when checking to see if the content is in the list. --- redbot/core/utils/predicates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/core/utils/predicates.py b/redbot/core/utils/predicates.py index 4df7154ee..35f69128e 100644 --- a/redbot/core/utils/predicates.py +++ b/redbot/core/utils/predicates.py @@ -744,7 +744,7 @@ class MessagePredicate(Callable[[discord.Message], bool]): if not same_context(m): return False try: - self.result = collection.index(m.content) + self.result = collection.index(m.content.lower()) except ValueError: return False else: