小编Emi*_*men的帖子

message.content.startswith Discord.Py

@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但我找不到任何替代品。

python discord.py

4
推荐指数
1
解决办法
5881
查看次数

SingleChildScrollView 内的 Flutter Column 不滚动

当我尝试在 SingleScrollChildView 中使用 Card 时,出现以下错误:

\n
The following assertion was thrown during layout:\nA RenderFlex overflowed by 178 pixels on the bottom.\n\nThe relevant error-causing widget was: \n  Column file:///C:/Users/emirs/AndroidStudioProjects/view_met/lib/home.dart:197:16\nThe overflowing RenderFlex has an orientation of Axis.vertical.\nThe edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and black striped pattern. This is usually caused by the contents being too big for the RenderFlex.\n\nConsider applying a flex factor (e.g. using an Expanded widget) to force the …
Run Code Online (Sandbox Code Playgroud)

dart material-design flutter

3
推荐指数
1
解决办法
7110
查看次数

标签 统计

dart ×1

discord.py ×1

flutter ×1

material-design ×1

python ×1