Код: Выделить всё
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)
Код: Выделить всё
ctx.command
Как мне получить подкоманду в этой ситуации?
Подробнее здесь: https://stackoverflow.com/questions/790 ... subcommand