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

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

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

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

        從 discord.py rewrite 發送一個 pm

        Send a pm from discord.py rewrite(從 discord.py rewrite 發送一個 pm)
          • <bdo id='qgq3E'></bdo><ul id='qgq3E'></ul>
                <tbody id='qgq3E'></tbody>
              <i id='qgq3E'><tr id='qgq3E'><dt id='qgq3E'><q id='qgq3E'><span id='qgq3E'><b id='qgq3E'><form id='qgq3E'><ins id='qgq3E'></ins><ul id='qgq3E'></ul><sub id='qgq3E'></sub></form><legend id='qgq3E'></legend><bdo id='qgq3E'><pre id='qgq3E'><center id='qgq3E'></center></pre></bdo></b><th id='qgq3E'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qgq3E'><tfoot id='qgq3E'></tfoot><dl id='qgq3E'><fieldset id='qgq3E'></fieldset></dl></div>

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

                1. <legend id='qgq3E'><style id='qgq3E'><dir id='qgq3E'><q id='qgq3E'></q></dir></style></legend>
                2. <tfoot id='qgq3E'></tfoot>
                  本文介紹了從 discord.py rewrite 發送一個 pm的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我試圖弄清楚如何從 discord.py 重寫機器人發送 pm.我不能做 ctx.author.send("context") 因為它向消息作者以外的人發送消息.這是我到目前為止在搜索用戶時所擁有的代碼,它總是帶有 NONE 的值

                  I'm trying to figure out how to send a pm from a discord.py rewrite bot. I can't do ctx.author.send("context") because it messaging someone other than the author of the message. here's the code that I have so far when I'm searching for a user it always comes with the value of NONE

                  @bot.command()
                  async def spam(ctx, author, message, amount):
                  print(author)
                  print(ctx.author)
                  victim = bot.get_user(author)
                  print(victim)
                  if not (victim == None):
                      for i in range(int(amount)):
                          await victim.send(message)
                  else:
                      print("NOPE")
                  

                  它有輸出

                  GIMMY READY......
                  Denard#0759
                  Denard#0759
                  None
                  NOPE
                  

                  推薦答案

                  您可以使用 converter 自動解析 victimUser 對象.

                  You can use a converter to resolve the User object of your victim automatically.

                  @bot.command()
                  async def spam(ctx, victim: discord.User, amount, *, message):
                      for _ in range(amount):
                          await victim.send(message)
                  

                  然后您可以使用他們的姓名、ID 或提及來指定他們:

                  You can then use their name, id, or a mention to specify them:

                  !spam Denard 1 spam spam spam
                  !spam @Denard 1 spam spam spam
                  !spam 1234 1 spam spam spam
                  

                  這篇關于從 discord.py rewrite 發送一個 pm的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 - 自動更改角色顏色)
                    <tfoot id='4e1yS'></tfoot>
                      <tbody id='4e1yS'></tbody>
                      <bdo id='4e1yS'></bdo><ul id='4e1yS'></ul>

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

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

                            主站蜘蛛池模板: 国产精品18hdxxxⅹ在线 | 色综合久久88色综合天天 | 日日骚视频 | 伊人影院在线观看 | 精品久久久一区二区 | 91精品久久久久久久久久入口 | va精品| 在线成人免费视频 | 超碰日本| 国产精品一卡 | 天天干天天爱天天操 | 中文天堂在线观看 | 天天舔天天 | 综合久久网 | 亚洲视频在线观看 | 午夜影院在线观看 | 久久av一区二区三区 | 黄色欧美视频 | 日韩一级电影免费观看 | 国产在线一区二区三区 | 精品国产一区二区三区久久影院 | 亚洲国产成人精品久久久国产成人一区 | 在线亚洲欧美 | 国产精品观看 | 国产精品.xx视频.xxtv | 色综合久久88色综合天天 | 91精品国产91久久综合桃花 | 羞羞的视频免费观看 | www狠狠干 | www性色| 欧美精品久久 | 中文字幕亚洲欧美 | 成人网av| 午夜爽爽爽男女免费观看影院 | 久久中文字幕在线 | h视频网站在线观看 | 男女久久久 | 久热电影 | 精品久久久久国产 | 中文字幕在线观看视频一区 | 中文字幕日韩欧美 |