[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.
This commit is contained in:
Redjumpman 2019-02-03 18:22:01 -05:00 committed by Toby Harradine
parent 6d22c8faa5
commit fa223e22ed

View File

@ -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: