diff options
| author | Harmon <[email protected]> | 2018-06-07 20:24:42 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-06-21 07:44:00 -0400 |
| commit | bf9ca405e333cb3b6c6a54a224d55bf30587700d (patch) | |
| tree | c7ee1375a6fb0668ffdaf947785053f92b8b59a4 | |
| parent | Bump Sphinx to 1.7.4 (diff) | |
| download | discord.py-bf9ca405e333cb3b6c6a54a224d55bf30587700d.tar.xz discord.py-bf9ca405e333cb3b6c6a54a224d55bf30587700d.zip | |
Fix case insensitive command removal
| -rw-r--r-- | discord/ext/commands/core.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 6c1d9a93..03c69167 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -94,6 +94,9 @@ class _CaseInsensitiveDict(dict): def get(self, k, default=None): return super().get(k.lower(), default) + def pop(self, k, default=None): + return super().pop(k.lower(), default) + def __setitem__(self, k, v): super().__setitem__(k.lower(), v) |