📜  discord python 发送私信 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:53.700000             🧑  作者: Mango

代码示例1
@client.command(pass_context=True)
async def dm(ctx):
    user=await client.get_user_info("User's ID here")
    await client.send_message(user, "Your message goes here")
    # This works ^