aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-02-09 09:20:25 +0000
committerGravatar Gareth Coles <[email protected]>2018-02-09 09:20:25 +0000
commitbc2503a134abb06b32b3daf4578a0a73cbaeb7d6 (patch)
treeaf80be5cb5cbfb759239795a044fb0103e9bc2e3
parentMonkey patching discord.ext.commands.view methods to allow case insensitivity... (diff)
Fix lemon's monkey-patching
-rw-r--r--bot/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index 90b474c7c..3358fc188 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -25,9 +25,9 @@ def case_insensitive_get_word(self):
# save the old methods
-_skip_string = discord.ext.commands.view.skip_string
-_get_word = discord.ext.commands.view.get_word
+_skip_string = discord.ext.commands.view.StringView.skip_string
+_get_word = discord.ext.commands.view.StringView.get_word
# monkey patch them to be case insensitive
-discord.ext.commands.view.skip_string = case_insensitive_skip_string
-discord.ext.commands.view.get_word = case_insensitive_get_word
+discord.ext.commands.view.StringView.skip_string = case_insensitive_skip_string
+discord.ext.commands.view.StringView.get_word = case_insensitive_get_word