diff options
| author | 2018-02-09 09:20:25 +0000 | |
|---|---|---|
| committer | 2018-02-09 09:20:25 +0000 | |
| commit | bc2503a134abb06b32b3daf4578a0a73cbaeb7d6 (patch) | |
| tree | af80be5cb5cbfb759239795a044fb0103e9bc2e3 | |
| parent | Monkey patching discord.ext.commands.view methods to allow case insensitivity... (diff) | |
Fix lemon's monkey-patching
| -rw-r--r-- | bot/__init__.py | 8 |
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 |