• <bdo id='77I9I'></bdo><ul id='77I9I'></ul>
  • <legend id='77I9I'><style id='77I9I'><dir id='77I9I'><q id='77I9I'></q></dir></style></legend>

      <i id='77I9I'><tr id='77I9I'><dt id='77I9I'><q id='77I9I'><span id='77I9I'><b id='77I9I'><form id='77I9I'><ins id='77I9I'></ins><ul id='77I9I'></ul><sub id='77I9I'></sub></form><legend id='77I9I'></legend><bdo id='77I9I'><pre id='77I9I'><center id='77I9I'></center></pre></bdo></b><th id='77I9I'></th></span></q></dt></tr></i><div id='77I9I'><tfoot id='77I9I'></tfoot><dl id='77I9I'><fieldset id='77I9I'></fieldset></dl></div>
      1. <tfoot id='77I9I'></tfoot>

        <small id='77I9I'></small><noframes id='77I9I'>

        如何让 discord.py 机器人 DM 特定用户

        时间:2023-09-09
        <i id='0TAyo'><tr id='0TAyo'><dt id='0TAyo'><q id='0TAyo'><span id='0TAyo'><b id='0TAyo'><form id='0TAyo'><ins id='0TAyo'></ins><ul id='0TAyo'></ul><sub id='0TAyo'></sub></form><legend id='0TAyo'></legend><bdo id='0TAyo'><pre id='0TAyo'><center id='0TAyo'></center></pre></bdo></b><th id='0TAyo'></th></span></q></dt></tr></i><div id='0TAyo'><tfoot id='0TAyo'></tfoot><dl id='0TAyo'><fieldset id='0TAyo'></fieldset></dl></div>

        • <bdo id='0TAyo'></bdo><ul id='0TAyo'></ul>
                <tbody id='0TAyo'></tbody>
                1. <small id='0TAyo'></small><noframes id='0TAyo'>

                2. <tfoot id='0TAyo'></tfoot><legend id='0TAyo'><style id='0TAyo'><dir id='0TAyo'><q id='0TAyo'></q></dir></style></legend>

                  本文介绍了如何让 discord.py 机器人 DM 特定用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我已经搜索了很多这个答案,但我没有找到它.我想使用一个建议命令,每当有人用它来建议一个想法时,它就会给我发私信,而且只发给我.

                  I have searched around a lot for this answer, and I haven't found it. I want to use a suggestion command, that whenever someone uses it to suggest an idea, it DMs me, and me only.

                  推荐答案

                  你必须使用 send_message 方法.在此之前,你必须找到与自己对应的User.

                  @client.event
                  async def on_message(message):
                      # we do not want the bot to reply to itself
                      if message.author == client.user:
                          return
                  
                      # can be cached...
                      me = await client.get_user_info('MY_SNOWFLAKE_ID')
                      await client.send_message(me, "Hello!")
                  

                  这篇关于如何让 discord.py 机器人 DM 特定用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用 discord.py 更改角色层次结构 下一篇:Discord.py 如何提及命令中提到的人

                  相关文章

                  最新文章

                3. <tfoot id='GkxFU'></tfoot>

                    <legend id='GkxFU'><style id='GkxFU'><dir id='GkxFU'><q id='GkxFU'></q></dir></style></legend>
                    • <bdo id='GkxFU'></bdo><ul id='GkxFU'></ul>

                    1. <small id='GkxFU'></small><noframes id='GkxFU'>

                      <i id='GkxFU'><tr id='GkxFU'><dt id='GkxFU'><q id='GkxFU'><span id='GkxFU'><b id='GkxFU'><form id='GkxFU'><ins id='GkxFU'></ins><ul id='GkxFU'></ul><sub id='GkxFU'></sub></form><legend id='GkxFU'></legend><bdo id='GkxFU'><pre id='GkxFU'><center id='GkxFU'></center></pre></bdo></b><th id='GkxFU'></th></span></q></dt></tr></i><div id='GkxFU'><tfoot id='GkxFU'></tfoot><dl id='GkxFU'><fieldset id='GkxFU'></fieldset></dl></div>