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

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

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

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

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

      1. Discord.py rewrite 如何 DM 命令?

        Discord.py rewrite How to DM commands?(Discord.py rewrite 如何 DM 命令?)

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

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

              1. <tfoot id='LZVAI'></tfoot>

                <legend id='LZVAI'><style id='LZVAI'><dir id='LZVAI'><q id='LZVAI'></q></dir></style></legend>
                <i id='LZVAI'><tr id='LZVAI'><dt id='LZVAI'><q id='LZVAI'><span id='LZVAI'><b id='LZVAI'><form id='LZVAI'><ins id='LZVAI'></ins><ul id='LZVAI'></ul><sub id='LZVAI'></sub></form><legend id='LZVAI'></legend><bdo id='LZVAI'><pre id='LZVAI'><center id='LZVAI'></center></pre></bdo></b><th id='LZVAI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='LZVAI'><tfoot id='LZVAI'></tfoot><dl id='LZVAI'><fieldset id='LZVAI'></fieldset></dl></div>
                    <tbody id='LZVAI'></tbody>
                  本文介紹了Discord.py rewrite 如何 DM 命令?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我試圖讓我的機器人在執行-help"時向用戶發送幫助.

                  I am trying to have my bot DM the user the help when "-help" is executed.

                  我已經嘗試在我的代碼中執行此操作,但它不起作用.

                  I have tried doing this in my code already but it will not work.

                  async def help(ctx):
                    helpembed = discord.Embed(color=discord.Color.purple())
                    helpembed.set_author(name="Help")
                    helpembed.add_field(name="-new", value="Creates a new ticket. [Logged]",inline=False)
                    helpembed.add_field(name="-close", value="Closes the ticket.People with the role 'Viewing Team' can close ticets. [Logged]",inline=False)
                    helpembed.add_field(name="-setup", value='Sets Up your server so it can be used',inline=False)
                    helpembed.add_field(name="-help", value="Shows this message :rofl:",inline=False)
                    await client.send_message(ctx.message.author, embed=helpembed)
                  await ctx.send("Help sent in DM's.")```
                  
                  The bot should DM the user with help. Instead it does nothing.
                  

                  推薦答案

                  向discord.py-rewrite,你使用 User.send 方法:

                  To send a private message to a user in discord.py-rewrite, you use the User.send method:

                  async def help(ctx):
                      ...
                      await ctx.author.send(...)
                  

                  這是因為 User 是抽象 Messageable

                  This is because User is a subclass of the abstract Messageable class

                  這篇關于Discord.py rewrite 如何 DM 命令?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 - 自動更改角色顏色)

                        • <small id='98NDh'></small><noframes id='98NDh'>

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

                            主站蜘蛛池模板: 男人av在线播放 | 精品久久久久一区二区国产 | 国产色播av在线 | 亚洲精品国产a久久久久久 中文字幕一区二区三区四区五区 | 国产亚洲精品久久久久动 | 3p视频在线观看 | 国内精品视频在线观看 | 日本三级电影在线观看视频 | 91色在线视频 | 欧美一级特黄aaa大片在线观看 | 久久精品国产久精国产 | 精品欧美乱码久久久久久 | 伊人亚洲| 日日操夜夜操天天操 | 自拍偷拍中文字幕 | 蜜桃视频一区二区三区 | 国产精品欧美一区二区三区不卡 | 国产精品亚洲成在人线 | 一级片免费网站 | 国产精品国产三级国产aⅴ原创 | 中文字幕第九页 | 一区二区三区四区视频 | 欧美精品日韩 | 日韩不卡视频在线观看 | 免费日韩av网站 | 免费国产一区二区 | 色www精品视频在线观看 | 久草热播 | 伊人青青久久 | 最新av中文字幕 | 伊人免费网| 国产91丝袜在线播放 | 国产美女免费视频 | 久草视频在线播放 | 日韩精品久久 | 正在播放国产精品 | 亚洲精品自拍视频 | 日韩av一区二区在线观看 | 亚洲一区二区视频 | 国产伦精品一区二区三区四区视频 | 一区二区三区中文字幕 |