diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 0d817074..ab4da277 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -833,7 +833,7 @@ class BotBase(GroupMixin): if self.case_insensitive_prefix: temp = [] for pre in ret: - temp += list(map(''.join, itertools.product(*((c.upper(), c.lower()) for c in ret)))) + temp += list(map(''.join, itertools.product(*((c.upper(), c.lower()) for c in pre)))) ret = temp else: ret = list(ret)