@@ -202,7 +202,7 @@ async def _pick(ctx, choice1, choice2): # Command with 1 or more args.
202202 auto_convert [x ["name" ]] = x ["type" ]
203203
204204 def wrapper (cmd ):
205- self .add_slash_command (cmd , name , description , auto_convert , guild_ids , options )
205+ self .add_slash_command (cmd , name . lower () , description , auto_convert , guild_ids , options )
206206 return cmd
207207 return wrapper
208208
@@ -254,7 +254,7 @@ async def _group_kick_user(ctx, user):
254254 """
255255
256256 def wrapper (cmd ):
257- self .add_subcommand (cmd , base , subcommand_group , name , description , auto_convert , guild_ids )
257+ self .add_subcommand (cmd , base . lower () , subcommand_group . lower () , name . lower () , description , auto_convert , guild_ids )
258258 return cmd
259259 return wrapper
260260
@@ -367,5 +367,5 @@ async def handle_subcommand(self, ctx: model.SlashContext, data: dict):
367367 return
368368 selected = base [sub_name ]
369369 args = await self .process_options (ctx .guild , sub_opts , selected ["auto_convert" ]) \
370- if sub [ "options" ] else []
370+ if "options" in sub . keys () else []
371371 await selected ["func" ](ctx , * args )
0 commit comments