Python 行未缩进的代码据说在函数中

Python line of unindented code is said to be in a function

在我正在开发的一个 discord 机器人程序中,我有一个函数读取

@client.event
async def on_message(message):
    if message.author == client.user:
        return

    if message.content.startswith(';hello'):
        await message.channel.send('Hello dirtbag')

    if message.content.startswith(';bitcoin price'):
        answer = bitcoin_price()ON
        await message.channel.send("The current price of bitcoin is ' + answer + ' USD')

然后在它下面我有

client.run(TOKEN)

但底线不起作用,我的编辑器(虚拟工作室代码)显示它在 on_message 函数中,即使它没有缩进。我也尝试在函数末尾添加 passreturn,但它仍然不起作用。

检查这一行用'

替换“
await message.channel.send("The current price of bitcoin is ' + answer + ' USD')

await message.channel.send('The current price of bitcoin is ' + answer + ' USD')