小编TRS*_*RSI的帖子

查找消息的作者

如果有人写“?name (arg)”,我希望我的机器人说出消息的作者 + “,你的名字是” + arg。但是我找不到该消息的作者

@client.command()
async def name(their_name):
    await client.say("{0}, your name is {1}.".format("""author of the message goes here""", their_name))
Run Code Online (Sandbox Code Playgroud)

python discord discord.py

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

标签 统计

discord ×1

discord.py ×1

python ×1