Python:
Python:
@bot.command()
async def comm(ctx, target_bot_id: int, command_name: str, **kwargs):
channel = bot.get_channel(ctx.channel.id)
command_string = f'/{command_name}'
for key, value in kwargs.items():
command_string += f' {key}: {value}'
target_bot = bot.get_user(target_bot_id)
await target_bot.send(command_string)
и никакого ответа от бота, даже ошибки нет. если убираю int в target_bot_id-comm "target_bot_id" /ask question: вопрос пользователя?
Python:
python:
async def comm(ctx, target_bot_id, command_name: str, **kwargs):
'NoneType' object has no attribute 'send'