mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 08:52:31 -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:
committed by
Toby Harradine
parent
bbe88293ab
commit
655b5a96ba
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user