I have a problem with this code here (inside bot.process_commands) using discord.py
<code> async def process_commands(self, message: discord.Message) -> None:
if message.author.bot:
return
ctx = await self.get_context(message)
command = ctx.command
if command:
print(command.name)
await self.invoke(ctx)
</code>
<code> async def process_commands(self, message: discord.Message) -> None:
if message.author.bot:
return
ctx = await self.get_context(message)
command = ctx.command
if command:
print(command.name)
await self.invoke(ctx)
</code>
async def process_commands(self, message: discord.Message) -> None:
if message.author.bot:
return
ctx = await self.get_context(message)
command = ctx.command
if command:
print(command.name)
await self.invoke(ctx)
when i call !<group> <subcommand> <args>
in discord
ctx.command
gives me the group instead of the subcommand
How would i get the subcommand in this situation?