首页 文章

当命令运行时,Bot应该向两个人发送消息

提问于
浏览
0

我'm making a discord bot. I wish to make the bot message myself, and my friend. I do have the message part where it replies to the person who executes the command, however I have no idea how to make it message people. Here'是我到目前为止命令的代码 . 我在其他语言中看到过这个问题的多个版本,但我不知道如何将它们转换为python .
有帮助吗?

@UGH.command()
async def support():
   message = 'A Staff member will be with you shortly, please do not run this command more than once.'
   await UGH.say(message)

1 回答

  • 0

    您可以通过以下方式向人们发送消息

    private_channel = await client.start_private_message(message.author)
    await client.send_message(private_channel, "Message")
    

相关问题