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

  • <small id='P9bEn'></small><noframes id='P9bEn'>

        <bdo id='P9bEn'></bdo><ul id='P9bEn'></ul>

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

    2. <legend id='P9bEn'><style id='P9bEn'><dir id='P9bEn'><q id='P9bEn'></q></dir></style></legend>

        如何通過我的 Discord 機器人發(fā)送嵌入,使用 pyt

        How can I send an embed via my Discord bot, w/python?(如何通過我的 Discord 機器人發(fā)送嵌入,使用 python?)
          <tbody id='axw5h'></tbody>
      1. <small id='axw5h'></small><noframes id='axw5h'>

          <bdo id='axw5h'></bdo><ul id='axw5h'></ul>

                <tfoot id='axw5h'></tfoot>

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

                • 本文介紹了如何通過我的 Discord 機器人發(fā)送嵌入,使用 python?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我一直在開發(fā)一個新的 Discord 機器人.

                  I've been working a new Discord bot.

                  我學(xué)到了一些東西,現(xiàn)在,我想讓這些東西變得更加定制化.

                  I've learnt a few stuff,and, now, I'd like to make the things a little more custom.

                  我一直在嘗試讓機器人發(fā)送嵌入消息,而不是普通消息.

                  I've been trying to make the bot send embeds, instead, of a common message.

                  embed=discord.Embed(title="Tile", description="Desc", color=0x00ff00)
                  embed.add_field(name="Fiel1", value="hi", inline=False)
                  embed.add_field(name="Field2", value="hi2", inline=False)
                  await self.bot.say(embed=embed)
                  

                  執(zhí)行此代碼時,我收到嵌入"不是模塊不和諧"模塊的有效成員的錯誤.所有網(wǎng)站,給我看這段代碼,我不知道有什么其他的方式來發(fā)送嵌入.

                  When executing this code, I get the error that 'Embed' is not a valid member of the module 'discord'. All websites, show me this code, and I have no idea of any other way to send a embed.

                  推薦答案

                  為了讓它工作,我將你的 send_message 行改為等待 message.channel.send(embed=embed)

                  To get it to work I changed your send_message line to await message.channel.send(embed=embed)

                  這是一個完整的示例代碼,展示了它是如何適應(yīng)的:

                  Here is a full example bit of code to show how it all fits:

                  @client.event
                  async def on_message(message):
                      if message.content.startswith('!hello'):
                          embedVar = discord.Embed(title="Title", description="Desc", color=0x00ff00)
                          embedVar.add_field(name="Field1", value="hi", inline=False)
                          embedVar.add_field(name="Field2", value="hi2", inline=False)
                          await message.channel.send(embed=embedVar)
                  

                  我使用 discord.py 文檔來幫助找到它.https://discordpy.readthedocs.io/en/latest/api.html#discord.TextChannel.send 用于發(fā)送方法的布局.

                  I used the discord.py docs to help find this. https://discordpy.readthedocs.io/en/latest/api.html#discord.TextChannel.send for the layout of the send method.

                  https://discordpy.readthedocs.io/en/latest/api.html#embed 用于 Embed 類.

                  https://discordpy.readthedocs.io/en/latest/api.html#embed for the Embed class.

                  1.0 之前的版本:如果您使用的是 1.0 之前的版本,請改用 await client.send_message(message.channel, embed=embed) 方法.

                  Before version 1.0: If you're using a version before 1.0, use the method await client.send_message(message.channel, embed=embed) instead.

                  這篇關(guān)于如何通過我的 Discord 機器人發(fā)送嵌入,使用 python?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  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(如何在不重復(fù)導(dǎo)入頂級名稱的情況下構(gòu)造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(分發(fā)帶有已編譯動態(tài)共享庫的 Python 包)

                  <tfoot id='cn4Cq'></tfoot>
                      <bdo id='cn4Cq'></bdo><ul id='cn4Cq'></ul>

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

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

                          1. 主站蜘蛛池模板: 亚洲少妇综合网 | av免费在线播放 | 91精品亚洲| 国产福利在线 | 日韩乱码一二三 | 欧美综合一区 | 国产高清精品一区二区三区 | 亚洲精品一区中文字幕乱码 | 国产在线观看不卡一区二区三区 | 欧美日韩在线播放 | 欧美一区二区三区视频 | 羞羞视频免费观看 | 亚洲视频在线看 | 国产小视频精品 | 中文字幕日韩专区 | 久久国产精品视频 | www..99re| 色男人的天堂 | 天天操欧美 | 成人免费视频网站在线看 | 精品免费国产一区二区三区四区介绍 | 欧美五月婷婷 | 东方伊人免费在线观看 | 国产精品一区二区日韩 | 日本特黄a级高清免费大片 特黄色一级毛片 | 成人一级毛片 | 国产91在线播放 | 国产欧美精品一区二区色综合 | 二区中文字幕 | 亚洲人a | 成人亚洲精品 | 成人在线小视频 | 国产99热精品 | 国产黄色在线观看 | 98成人网 | 三级黄色大片网站 | 国产精品日韩高清伦字幕搜索 | 福利社午夜影院 | 国产精品美女久久久久久久网站 | 欧美日韩亚洲一区 | 国产欧美一区二区三区在线看 |