@@ -202,7 +202,7 @@ async def _pick(ctx, choice1, choice2): # Command with 1 or more args.
202
202
auto_convert [x ["name" ]] = x ["type" ]
203
203
204
204
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 )
206
206
return cmd
207
207
return wrapper
208
208
@@ -254,7 +254,7 @@ async def _group_kick_user(ctx, user):
254
254
"""
255
255
256
256
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 )
258
258
return cmd
259
259
return wrapper
260
260
@@ -367,5 +367,5 @@ async def handle_subcommand(self, ctx: model.SlashContext, data: dict):
367
367
return
368
368
selected = base [sub_name ]
369
369
args = await self .process_options (ctx .guild , sub_opts , selected ["auto_convert" ]) \
370
- if sub [ "options" ] else []
370
+ if "options" in sub . keys () else []
371
371
await selected ["func" ](ctx , * args )
0 commit comments