<tfoot id='XlGmT'></tfoot>
    1. <small id='XlGmT'></small><noframes id='XlGmT'>

        <bdo id='XlGmT'></bdo><ul id='XlGmT'></ul>

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

        查找消息的作者

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

          <bdo id='FqNkG'></bdo><ul id='FqNkG'></ul>
          <tfoot id='FqNkG'></tfoot>

            <legend id='FqNkG'><style id='FqNkG'><dir id='FqNkG'><q id='FqNkG'></q></dir></style></legend>

                <tbody id='FqNkG'></tbody>

                1. 本文介绍了查找消息的作者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

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

                  If someone writes "?name (arg)" I want my bot to say the author of the message + ", your name is" + arg. I can't find of the author of the message though.

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

                  推荐答案

                  要获取消息作者的姓名,您需要使用 上下文

                  To get the name of the author of the message, you will need to use context

                  @client.command(pass_context=True)
                  async def name(ctx):
                      username = ctx.message.author.name
                      ...
                  

                  这篇关于查找消息的作者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:尝试使用 Discord.py rewrite 向特定频道发送消息,但 下一篇:您如何通过 discord.py 重写分配角色?

                  相关文章

                  最新文章

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

                    • <bdo id='bbA91'></bdo><ul id='bbA91'></ul>

                      <legend id='bbA91'><style id='bbA91'><dir id='bbA91'><q id='bbA91'></q></dir></style></legend>

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

                    2. <tfoot id='bbA91'></tfoot>