Python TypeError:send()接受1到2个位置参数,但为3个提供了discord.py

Python TypeError:send()接受1到2个位置参数,但为3个提供了discord.py,python,python-3.x,pycharm,discord.py,send,Python,Python 3.x,Pycharm,Discord.py,Send,这已经发生了一段时间了。我用了discord.py。这是一个例子: test = input("Write something:") await message.channel.send("You wrote:", test) 它在控制台中写入的内容: >>TypeError: send() takes from 1 to 2 positional arguments but 3 were given 请提供帮助。根据discord.py,您应该传递一个消息字符串作为位置参数。我

这已经发生了一段时间了。我用了discord.py。这是一个例子:

test = input("Write something:")
await message.channel.send("You wrote:", test)
它在控制台中写入的内容:

>>TypeError: send() takes from 1 to 2 positional arguments but 3 were given
请提供帮助。

根据discord.py,您应该传递一个消息字符串作为位置参数。我相信你想写这样的东西:

测试=输入写东西: wait message.channel.sendfYou写入:{test}