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

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

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

      on_member_join 和删除不起作用.如何让它发挥作用

      时间:2023-09-11

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

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

          <tfoot id='hSAuz'></tfoot>

              <bdo id='hSAuz'></bdo><ul id='hSAuz'></ul>
              • 本文介绍了on_member_join 和删除不起作用.如何让它发挥作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我不知道为什么,但这两个命令对我不起作用.

                I don't know why but those 2 commands don't work for me.

                @client.event
                async def on_member_join(member):
                    ver_Channel = client.get_channel(799666119787020289)
                    await ver_Channel.send(member+ " have joined the server!")
                
                
                @client.event
                async def on_member_remove(member):
                    ver_Channel = client.get_channel(799666119787020289)
                    await ver_Channel.send(member + " have been left :(")
                

                顺便说一句,请写下基本的编码说明我是初学者

                btw please write in basic coding explanation I'm a beginner

                推荐答案

                我很确定这是一个意图问题,你应该启用 intents.members

                I'm pretty sure this is an intents issue, you should enable intents.members

                intents = discord.Intents.default() # Enabling everything apart from privileged intents (members & presences)
                intents.members = True # Explicitly enabling `intents.members`
                
                client = commands.Bot(..., intents=intents)
                

                还要确保在开发者门户

                如何启用特权网关意图

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

                上一篇:Mass DM 机器人工作正常,现在它不会发送消息 下一篇:Bot 和 Client 有什么区别?

                相关文章

                最新文章

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

                1. <legend id='bistn'><style id='bistn'><dir id='bistn'><q id='bistn'></q></dir></style></legend>
                    <bdo id='bistn'></bdo><ul id='bistn'></ul>

                  <tfoot id='bistn'></tfoot>

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