<tfoot id='jUmaZ'></tfoot>

<small id='jUmaZ'></small><noframes id='jUmaZ'>

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

        如何让 discord.py 意图发挥作用?

        时间:2023-09-11
            <tfoot id='VUqqp'></tfoot>

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

                  <tbody id='VUqqp'></tbody>
                <legend id='VUqqp'><style id='VUqqp'><dir id='VUqqp'><q id='VUqqp'></q></dir></style></legend>
              • <small id='VUqqp'></small><noframes id='VUqqp'>

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

                  问题描述

                  我正在尝试制作一个机器人来欢迎人们使用它所在的服务器,并且所有代码都可以正常工作,除了 on_member_join 事件,因为它利用了新意图.我在 Google 上搜索了如何使用这些意图并尝试了所有方法,但仍然无法正常工作.

                  I am trying to make a bot that welcomes people to the server that it's in and all of the code works except for the on_member_join event because it utilizes the new intents. I googled on how to work with the intents and tried everything but it still isn't working.

                  intents = discord.Intents.default()
                  intents.members = True
                  client = commands.Bot(command_prefix=',', intents = intents)
                  

                  我该如何解决这个问题?

                  How do I fix this?

                  推荐答案

                  intents = discord.Intents.default()
                  intents.members = True
                  
                  client = commands.Bot(command_prefix=',', intents=intents)
                  

                  您还必须在开发者门户

                  意图入门入门

                  这篇关于如何让 discord.py 意图发挥作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:从函数内将变量插入全局命名空间? 下一篇:为什么多个 on_message 事件不起作用?

                  相关文章

                  最新文章

                • <tfoot id='ySnFC'></tfoot>

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

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

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