Skip to content

case_insensitive not working properly in 2.0.0b1 #885

@Dearex

Description

@Dearex

Summary

Commands will only be accepted if they are full lowercase

Reproduction Steps

Implement command with not only lowercase letters
Add case_insensitive=True
Command is only accessible with full lowercase

Tested the same setup in 2.0.0b1 and 1.7.3
1.7.3 accepted all inputs as Command, 2.0.0b1 only accepts lowercase commands

Minimal Reproducible Code

from discord.ext import commands

comand_prefix = "-"
bot_token = open("Bot_Token.txt").readline()

bot = commands.Bot(command_prefix=comand_prefix, case_insensitive=True)

class a(commands.Cog, name="Cog Name"):

    @commands.command()
    async def Test(self, ctx):
        print("test")

bot.add_cog(a(bot))
bot.run(bot_token)

# -> Accepts "-test" but not "-Test"

Expected Results

Accept commands case insensitive

Actual Results

Accepts commands only when lowercase, otherwise CommandNotFound error

Intents

None

System Information

  • Python v3.10.0-final
  • py-cord v2.0.0-beta
    • py-cord pkg_resources: v2.0.0b1
  • aiohttp v3.7.4.post0
  • system info: Windows 10 10.0.19043

Metadata

Metadata

Assignees

No one assigned

    Labels

    unconfirmed bugA bug report that needs triaging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions