久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='gf2Wo'><style id='gf2Wo'><dir id='gf2Wo'><q id='gf2Wo'></q></dir></style></legend>

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

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

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

        如何在 discord.py 中編輯消息

        How to edit a message in discord.py(如何在 discord.py 中編輯消息)

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

        <tfoot id='LcaS6'></tfoot>
          • <bdo id='LcaS6'></bdo><ul id='LcaS6'></ul>

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

                  <tbody id='LcaS6'></tbody>
                  本文介紹了如何在 discord.py 中編輯消息的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  如果我的機器人檢測到關鍵字,我想讓我的機器人編輯消息,但我不確定如何編輯消息.

                  I would like to have my bot edit a message if it detects a keyword, i'm not sure how to edit the message though.

                  我查看了文檔,但似乎無法弄清楚.我在 python 3.6 中使用 discord.py.

                  I've looked through the documentation but can't seem to figure it out. I'm using discord.py with python 3.6.

                  這是代碼:

                  @bot.event
                  async def on_message(message):
                      if 'test' in message.content:
                          await edit(message, "testtest")
                  

                  這是錯誤:

                    File "testthing.py", line 67, in on_message
                      await edit(message, "test")
                   NameError: name 'edit' is not defined
                  

                  如果消息包含單詞 test,我希望機器人將消息編輯為testtest",但我只是收到一個錯誤.

                  I would like the bot to edit a message to "testtest" if the message contains the word test, but i just get an error.

                  推薦答案

                  您可以使用 Message.edit 協程.參數必須作為關鍵字參數 contentembeddelete_after 傳遞.您只能編輯已發送的消息.

                  You can use the Message.edit coroutine. The arguments must be passed as keyword arguments content, embed, or delete_after. You may only edit messages that you have sent.

                  await message.edit(content="newcontent")
                  

                  這篇關于如何在 discord.py 中編輯消息的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  python: Two modules and classes with the same name under different packages(python:不同包下同名的兩個模塊和類)
                  Configuring Python to use additional locations for site-packages(配置 Python 以使用站點包的其他位置)
                  How to structure python packages without repeating top level name for import(如何在不重復導入頂級名稱的情況下構造python包)
                  Install python packages on OpenShift(在 OpenShift 上安裝 python 包)
                  How to refresh sys.path?(如何刷新 sys.path?)
                  Distribute a Python package with a compiled dynamic shared library(分發帶有已編譯動態共享庫的 Python 包)

                        <tbody id='hfNsM'></tbody>

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

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

                        • <legend id='hfNsM'><style id='hfNsM'><dir id='hfNsM'><q id='hfNsM'></q></dir></style></legend>
                          <i id='hfNsM'><tr id='hfNsM'><dt id='hfNsM'><q id='hfNsM'><span id='hfNsM'><b id='hfNsM'><form id='hfNsM'><ins id='hfNsM'></ins><ul id='hfNsM'></ul><sub id='hfNsM'></sub></form><legend id='hfNsM'></legend><bdo id='hfNsM'><pre id='hfNsM'><center id='hfNsM'></center></pre></bdo></b><th id='hfNsM'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='hfNsM'><tfoot id='hfNsM'></tfoot><dl id='hfNsM'><fieldset id='hfNsM'></fieldset></dl></div>
                          <tfoot id='hfNsM'></tfoot>
                          • 主站蜘蛛池模板: 免费午夜视频在线观看 | 国产精品成人69xxx免费视频 | 久久久久99 | 97精品一区二区 | 国产精品久久久久久久久久不蜜臀 | 国产欧美一区二区三区久久人妖 | 国产精品国产成人国产三级 | 精品日韩一区二区三区 | 不卡一区二区三区四区 | 在线一区观看 | 99久久电影 | 日韩高清中文字幕 | 国产激情小视频 | k8久久久一区二区三区 | 国产精品精品3d动漫 | 成人乱人乱一区二区三区软件 | 国产精品久久久久免费 | 中文字幕一区二区三区四区五区 | 欧美日韩在线精品 | 九九伦理片 | 国产高清在线精品一区二区三区 | 第一区在线观看免费国语入口 | 国产高清视频一区 | 国产视频一区在线 | 亚洲福利av | 久久高清 | 国产在线视频一区二区 | 99国产精品视频免费观看一公开 | 91久操网| 天堂一区在线 | 天堂久久一区 | 午夜丁香视频在线观看 | 成人精品国产一区二区4080 | 日日操操 | 久久久精品天堂 | 亚洲精品成人 | 色一阁| 亚洲一区二区三区视频免费观看 | 国产成人一区二区三区 | 亚洲视频观看 | 午夜网|