小编Apr*_*han的帖子

send() 需要 1 到 2 个位置参数,但给出了 3 个 (discord.py)

我试图让它说出执行~milk的用户的名字,它只会在你输入 discord ~milk时产生错误, 这里是产生错误的代码:

async def on_message(message):
   if message.author == client.user:
       return
   if message.content.startswith('~milk'):
       await message.channel.send(message.author, 'is blessed by the Baltic Gods of Dairy')
Run Code Online (Sandbox Code Playgroud)

python discord discord.py

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

标签 统计

discord ×1

discord.py ×1

python ×1