@client.event
async def on_message(message):
await client.process_commands(message)
if message.content.startswith('sa'):
await message.channel.send('as')
Run Code Online (Sandbox Code Playgroud)
这是我的代码。as当我说的时候它应该说sa。它工作正常,但是当我编写salah或以 开头的任何内容时sa,它会检测到它并做出响应。它不应该那样工作。我阅读了文档但找不到任何东西,我知道这是因为.startswith但我找不到任何替代品。