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

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

<legend id='oSBt2'><style id='oSBt2'><dir id='oSBt2'><q id='oSBt2'></q></dir></style></legend>
    <tfoot id='oSBt2'></tfoot>

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

    1. discord.py 中的 Cog 和 Extension 有什么區別?

      Whats the difference between a Cog and an Extension in discord.py?(discord.py 中的 Cog 和 Extension 有什么區別?)
    2. <small id='RThpr'></small><noframes id='RThpr'>

      • <bdo id='RThpr'></bdo><ul id='RThpr'></ul>
          <tbody id='RThpr'></tbody>

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

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

              • 本文介紹了discord.py 中的 Cog 和 Extension 有什么區別?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                在 discord.py 文檔中,有擴展:https://discordpy.readthedocs.io/en/stable/ext/commands/extensions.html和齒輪:https://discordpy.readthedocs.io/en/stable/ext/commands/cogs.html有什么區別?

                In the discord.py documention, there are Extensions: https://discordpy.readthedocs.io/en/stable/ext/commands/extensions.html and Cogs: https://discordpy.readthedocs.io/en/stable/ext/commands/cogs.html what is the difference?

                推薦答案

                擴展是被加載的文件,當你調用 load_extension 時,將它們視為 discord.py 庫導入的模塊.導入發生后,一個 setup 函數被調用,并被傳遞給它被加載到的 Bot 實例......本質上是 module.setup(bot).就是這樣,沒有更多的擴展......通常這個設置函數調用 add_cog 將在下面描述,但是沒有要求他們這樣做.

                Extensions are files that are loaded, think of them as modules that the discord.py library imports when you call load_extension. After the import happens, a setup function is called, and is passed the Bot instance that it was loaded into....essentially module.setup(bot). That is it, there is no more to extensions...typically this setup function calls add_cog which will be described next, however there is no requirement that they do so.

                Cog 是從 commands.Cog 繼承的類,并通過 add_cog 添加到機器人的 cog 列表中,這些類通常包含命令并充當"類別"對于這些命令.它還可以容納諸如 on_messageon_member_join 等事件的偵聽器.

                A Cog is a class that inherits from commands.Cog and is added to the bot's list of cogs through add_cog, these classes typically house commands and act as a "category" for these commands. It can also house listeners for events such as on_message or on_member_join, etc.

                TL;DR - 擴展是導入的模塊,cogs 是類

                這篇關于discord.py 中的 Cog 和 Extension 有什么區別?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                message.channel.id Discord PY(message.channel.id Discord PY)
                How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
                <legend id='trqiF'><style id='trqiF'><dir id='trqiF'><q id='trqiF'></q></dir></style></legend>
                  <tbody id='trqiF'></tbody>

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

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

                          <tfoot id='trqiF'></tfoot>

                        1. 主站蜘蛛池模板: 精品国产乱码久久久久久影片 | 久久精品福利视频 | 伊人免费在线观看高清 | 华人黄网站大全 | 91久久久久久久久久久久久 | 永久精品 | 国产精品一区二 | 国产精品美女在线观看 | 国产精品亚洲视频 | 欧美最猛黑人 | 免费黄色片视频 | 欧美日本韩国一区二区 | 亚洲系列第一页 | 国产精品18毛片一区二区 | 精品美女在线观看视频在线观看 | 欧美一级片在线看 | 亚洲视频国产 | 六月婷婷久久 | 亚洲www啪成人一区二区 | 欧美一区永久视频免费观看 | 日本h片在线观看 | 日本aa毛片a级毛片免费观看 | www.青青草 | 欧美精品在线看 | 成人精品视频 | 久久蜜桃精品 | 日日摸日日碰夜夜爽亚洲精品蜜乳 | 国产99小视频 | 久久综合久 | 久久久久久亚洲国产精品 | 久久久久久亚洲精品 | 精品亚洲一区二区三区 | 国产精品免费观看 | 色视频在线观看 | 国产一区二区三区不卡av | 国产精品免费视频一区 | 欧美日韩在线观看一区 | 91视频国产一区 | 欧美激情一区二区三区 | 久久精品国产亚洲夜色av网站 | 夜夜夜操 |