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

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

        运行机器人示例代码时,我收到此错误

        时间:2023-10-10

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

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

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

              <tfoot id='kdDRk'></tfoot>
                  本文介绍了运行机器人示例代码时,我收到此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我的代码正是

                  这个(当然是我的令牌)

                  当我运行它时,我的机器人正常启动,但是当一个新人添加到服务器时,我得到了这个.

                  When I run it, my bot starts up as normal, but when a new person is added to the server, i get this.

                  ------
                  Ignoring exception in on_member_join
                  Traceback (most recent call last):
                    File "C:UsersUSRNAMEAppDataLocalProgramsPythonPython36libsite-packagesdiscordclient.py", line 307, in _run_event
                      yield from getattr(self, event)(*args, **kwargs)
                    File "test.py", line 9, in on_member_join
                      await client.send_message(server, fmt.format(member, server))
                    File "C:UsersUSRNAMEAppDataLocalProgramsPythonPython36libsite-packagesdiscordclient.py", line 1152, in send_message
                      data = yield from self.http.send_message(channel_id, content, guild_id=guild_id, tts=tts, embed=embed)
                    File "C:UsersUSRNAMEAppDataLocalProgramsPythonPython36libsite-packagesdiscordhttp.py", line 198, in request
                      raise NotFound(r, data)
                  discord.errors.NotFound: NOT FOUND (status code: 404): Unknown Channel
                  

                  (对不起,它不在代码块中,我是堆栈交换的新手)

                  (Sorry about it not being in a code block, I'm new to stack exchange)

                  任何帮助将不胜感激.谢谢

                  Any help would be appreciated. Thanks

                  推荐答案

                  这将不再起作用,因为不和谐删除了默认频道,因此将其发送到 server 将不起作用.如果您使用异步或 discord.Object(insert channel id),则应将 server 替换为 discord.Object('insert channel id')如果您使用的是重写分支.注意字符串与 int 的区别.祝你好运:)

                  This will not work anymore because discord removed default channels so sending it to server will not work. You should replace server with discord.Object('insert channel id') if you are using async or discord.Object(insert channel id) if you are using the rewrite branch. Note the string vs int difference. Good luck :)

                  这篇关于运行机器人示例代码时,我收到此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:我如何将成员的图像和昵称放在嵌入中?(w/discor 下一篇:Discord.py(更改机器人的文本颜色)

                  相关文章

                  最新文章

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

                  <tfoot id='02duu'></tfoot>

                    • <bdo id='02duu'></bdo><ul id='02duu'></ul>

                  1. <legend id='02duu'><style id='02duu'><dir id='02duu'><q id='02duu'></q></dir></style></legend>