From 655b5a96ba55327bf3233c18cf6d13d5403e59a0 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: