如何获取带有标记的用户名作为回复。下面的代码在标记示例?hello @Steve
@bot.command(pass_context=True)
async def hello(ctx, member: discord.Member):
await bot.send_message(member, "Hi (username) how are you.")
漫游器回复的Hi Steve how are you.
答案 0 :(得分:0)
检查User 示例:
await bot.send_message(member, "Hi {} I love ya.".format(member.name))