mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
[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:
parent
6d22c8faa5
commit
fa223e22ed
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user